Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/auth_configuration/confirmable' LIMIT 1 Started GET "/" for 127.0.0.1 at 2015-01-27 11:03:18 -0500 ActiveRecord::SchemaMigration Load (7.9ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Sprangular::HomeController#index as HTML Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/redirect_https_to_http' LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency' LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/logo' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/default_country_id' LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (2286.2ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (550.9ms) Spree::Tracker Load (0.3ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (15.5ms) Completed 200 OK in 35109ms (Views: 34848.4ms | ActiveRecord: 8.2ms) Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:54 -0500 Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-01-27 11:03:54 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:54 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-01-27 11:03:54 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:54 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:54 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:55 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:55 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:55 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:55 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:55 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:55 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:55 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:55 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:55 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:55 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:56 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:56 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:56 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:56 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:56 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:56 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:56 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:56 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:56 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:56 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:56 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:57 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:57 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:57 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:57 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:57 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:57 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:57 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:57 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:57 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:57 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:57 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:57 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:57 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:57 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:58 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:58 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:58 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:58 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:58 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:58 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:58 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:58 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:58 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:58 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:58 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:58 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:59 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:59 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:59 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:59 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:59 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:59 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:59 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:59 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:59 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:59 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:59 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:59 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:59 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-01-27 11:03:59 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-01-27 11:04:00 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-01-27 11:04:00 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-01-27 11:04:00 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-01-27 11:04:00 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-01-27 11:04:00 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-01-27 11:04:00 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-01-27 11:04:00 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-01-27 11:04:00 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-01-27 11:04:00 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-01-27 11:04:00 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-01-27 11:04:00 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-01-27 11:04:01 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-01-27 11:04:01 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-01-27 11:04:01 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-01-27 11:04:01 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-01-27 11:04:01 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-01-27 11:04:01 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-01-27 11:04:01 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-01-27 11:04:01 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-01-27 11:04:01 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-01-27 11:04:02 -0500 Started GET "/api/cart.json" for 127.0.0.1 at 2015-01-27 11:04:03 -0500 Processing by Sprangular::CartsController#show as JSON Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/not_found.json.rabl (2.7ms) Completed 404 Not Found in 57ms (Views: 38.0ms | ActiveRecord: 2.2ms) Started GET "/api/account" for 127.0.0.1 at 2015-01-27 11:04:03 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (2.7ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 342ms (Views: 337.3ms | ActiveRecord: 0.0ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-01-27 11:04:03 -0500 Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-01-27 11:04:03 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-01-27 11:04:03 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (129.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (436.2ms) Completed 200 OK in 477ms (Views: 321.4ms | ActiveRecord: 137.6ms) Started GET "/api/products?page=1&per_page=8" for 127.0.0.1 at 2015-01-27 11:04:04 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"8"} Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/show_products_without_price' LIMIT 1  (1.1ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-01-27 16:04:04.897257') AND ("spree_products".available_on <= '2015-01-27 16:04:04.899655') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0) subquery_for_count  (1.0ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-01-27 16:04:04.897257') AND ("spree_products".available_on <= '2015-01-27 16:04:04.899655') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (1.4ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-01-27 16:04:04.897257') AND ("spree_products".available_on <= '2015-01-27 16:04:04.899655') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0 Spree::ProductOptionType Load (0.6ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.8ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (0.9ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Image Load (1.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.4ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Price Load (0.7ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::ProductProperty Load (1.9ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY spree_product_properties.position Spree::Property Load (0.7ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.9ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_variants".position ASC Spree::Image Load (1.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.5ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.7ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.6ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/display_currency' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_symbol_position' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/hide_cents' LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_decimal_mark' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_thousands_separator' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_sign_before_symbol' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/track_inventory_levels' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (6111.3ms) Completed 200 OK in 6287ms (Views: 6068.4ms | ActiveRecord: 66.5ms) Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-01-27 11:04:11 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.0ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (3.1ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (13.1ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (230.6ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (25.4ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1784.1ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-01-27 11:04:13 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-01-27 11:04:13 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-01-27 11:04:13 -0500 Started POST "/api/cart/add_variant" for 127.0.0.1 at 2015-01-27 11:36:28 -0500 Processing by Sprangular::CartsController#add_variant as JSON Parameters: {"variant_id"=>"17", "quantity"=>"1"} Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.9ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1  (0.2ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_orders" WHERE (spree_orders.number LIKE 'R079133342%') CACHE (0.0ms) SELECT 1 AS one FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/always_include_confirm_step' LIMIT 1 SQL (5.1ms) INSERT INTO "spree_orders" ("created_at", "currency", "guest_token", "number", "state", "store_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-01-27 16:36:29.065862"], ["currency", "USD"], ["guest_token", "79-uutPkfez40Dyc4jyOkw"], ["number", "R079133342"], ["state", "cart"], ["store_id", 1], ["updated_at", "2015-01-27 16:36:29.065862"]]  (39.8ms) commit transaction Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::LineItem Load (0.5ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Unpermitted parameters: currency Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" = ? [["variant_id", 17]]  (0.2ms) begin transaction Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::TaxCategory Load (0.4ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' SQL (3.0ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2015-01-27 16:36:29.275784"], ["currency", "USD"], ["order_id", 6], ["price", 19.99], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2015-01-27 16:36:29.275784"], ["variant_id", 17]] Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/tax_using_ship_address' LIMIT 1 Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] SQL (0.8ms) UPDATE "spree_orders" SET "updated_at" = '2015-01-27 16:36:29.361948' WHERE "spree_orders"."id" = 6 Spree::Payment Load (0.4ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] SQL (0.4ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-01-27 16:36:29.442974' WHERE "spree_line_items"."id" = 18  (15.9ms) commit transaction  (0.4ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.4ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.3ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.4ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order'))  (0.3ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.6ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.4ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.3ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.4ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.4ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.4ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.5ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (18.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 19.99, "item_count" = 1, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 19.99, "updated_at" = '2015-01-27 16:36:29.519246' WHERE "spree_orders"."id" = 6 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::Shipment Exists (0.5ms) SELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? LIMIT 1 [["order_id", 6]] Spree::Promotion Load (0.7ms) SELECT DISTINCT "spree_promotions".* FROM "spree_promotions" LEFT OUTER JOIN "spree_orders_promotions" ON "spree_promotions"."id" = "spree_orders_promotions"."promotion_id" WHERE (starts_at IS NULL OR starts_at < '2015-01-27 16:36:29.556153') AND (expires_at IS NULL OR expires_at > '2015-01-27 16:36:29.556641') AND (("spree_promotions"."code" IS NULL AND "spree_promotions"."path" IS NULL OR "spree_orders_promotions"."order_id" = 6)) Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] SQL (23.4ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-01-27 16:36:29.568183' WHERE "spree_line_items"."id" = 18  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order'))  (0.3ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (18.5ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 19.99, "item_count" = 1, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 19.99, "updated_at" = '2015-01-27 16:36:29.630524' WHERE "spree_orders"."id" = 6 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "spree_inventory_units" WHERE "spree_inventory_units"."line_item_id" = ? [["line_item_id", 18]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Shipment Exists (0.2ms) SELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? LIMIT 1 [["order_id", 6]]  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.7ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.4ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.6ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.4ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.4ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.5ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.5ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (3473.1ms) Completed 200 OK in 4301ms (Views: 3461.9ms | ActiveRecord: 189.7ms) Started PUT "/api/checkouts/R079133342/quick_update" for 127.0.0.1 at 2015-01-27 11:37:01 -0500 Processing by Spree::Api::CheckoutsController#quick_update as JSON Parameters: {"order"=>{"coupon_code"=>""}, "id"=>"R079133342"} Spree::User Load (0.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."spree_api_key" = '' LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/api_configuration/requires_authentication' LIMIT 1 Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/errors/must_specify_api_key.v1.rabl (1.8ms) Filter chain halted as :authenticate_user rendered or redirected Completed 401 Unauthorized in 1320ms (Views: 1303.7ms | ActiveRecord: 2.6ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-01-27 11:37:39 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-01-27 11:37:39 -0500 Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-01-27 12:24:24 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-01-27 12:24:24 -0500 Started GET "/" for 127.0.0.1 at 2015-01-27 15:55:10 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Preference Load (1.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/redirect_https_to_http' LIMIT 1 Spree::Preference Load (1.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency' LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/logo' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/default_country_id' LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/display_currency' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_symbol_position' LIMIT 1 Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/hide_cents' LIMIT 1 Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_decimal_mark' LIMIT 1 Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_thousands_separator' LIMIT 1 Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_sign_before_symbol' LIMIT 1  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/always_include_confirm_step' LIMIT 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/track_inventory_levels' LIMIT 1  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (3229.5ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (4097.0ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (313.5ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (11.0ms) Completed 200 OK in 25988ms (Views: 25924.5ms | ActiveRecord: 35.2ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-01-27 15:55:37 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:37 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:37 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:37 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-01-27 15:55:37 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:38 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:38 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:38 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:38 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:38 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:38 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:38 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:38 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:38 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:38 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:38 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:38 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:39 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:39 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:39 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:39 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:39 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:39 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:39 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:39 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:39 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:39 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:39 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:39 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:39 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:39 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:39 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:40 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:40 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:40 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:40 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:40 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:40 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:40 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:40 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:40 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:40 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:40 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:40 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:40 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:41 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:41 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:41 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:41 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:41 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:41 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:41 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:41 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:41 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:41 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:41 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:41 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:41 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:41 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:42 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:42 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:42 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:42 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:42 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:42 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:42 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:42 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:42 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:42 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:42 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:42 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:42 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:42 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:42 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:43 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:43 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:43 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:43 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:43 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:43 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:43 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:43 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:43 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:43 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:43 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:44 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:44 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:44 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:44 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:44 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:44 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:44 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:45 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:45 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:45 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:45 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:45 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:45 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:46 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:46 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:46 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:46 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:46 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:46 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:46 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:46 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:46 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:46 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:46 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:47 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:47 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:47 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:47 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:47 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:47 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:47 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:47 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:47 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:47 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:47 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:48 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:48 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:48 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:48 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:48 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:48 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:48 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:48 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:48 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:48 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:48 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:48 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:49 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:49 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:49 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:49 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:49 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:49 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:49 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:49 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:49 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:49 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:49 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:49 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-01-27 15:55:50 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-01-27 15:55:50 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.6ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 343ms (Views: 337.9ms | ActiveRecord: 0.0ms) Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-01-27 15:55:51 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-01-27 15:55:51 -0500 Started GET "/api/products?page=1&per_page=8" for 127.0.0.1 at 2015-01-27 15:55:51 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"8"} Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/show_products_without_price' LIMIT 1  (0.8ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-01-27 20:55:51.378195') AND ("spree_products".available_on <= '2015-01-27 20:55:51.379657') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0) subquery_for_count  (0.7ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-01-27 20:55:51.378195') AND ("spree_products".available_on <= '2015-01-27 20:55:51.379657') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (1.0ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-01-27 20:55:51.378195') AND ("spree_products".available_on <= '2015-01-27 20:55:51.379657') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0 Spree::ProductOptionType Load (0.6ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::OptionType Load (0.7ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.9ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (1.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Image Load (1.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.5ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Price Load (0.7ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::ProductProperty Load (1.6ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY spree_product_properties.position Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_variants".position ASC Spree::Image Load (3.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.8ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.8ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (1.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (5162.2ms) Completed 200 OK in 5205ms (Views: 5145.0ms | ActiveRecord: 47.6ms) Started GET "/api/taxonomies" for 127.0.0.1 at 2015-01-27 15:55:56 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (187.3ms) Completed 200 OK in 218ms (Views: 205.1ms | ActiveRecord: 7.0ms) Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-01-27 15:55:56 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.9ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (3.4ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (17.8ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (312.8ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (5.5ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1691.8ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-01-27 15:55:58 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-01-27 15:55:58 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-01-27 15:55:59 -0500 Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-01-27 15:56:33 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-01-27 15:56:33 -0500 Started PUT "/api/checkouts/R079133342/quick_update" for 127.0.0.1 at 2015-01-27 15:56:51 -0500 Processing by Spree::Api::CheckoutsController#quick_update as JSON Parameters: {"order"=>{"coupon_code"=>"10off", "token"=>"79-uutPkfez40Dyc4jyOkw"}, "id"=>"R079133342"} Spree::User Load (1.5ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."spree_api_key" = '' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/api_configuration/requires_authentication' LIMIT 1 Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/errors/must_specify_api_key.v1.rabl (1.2ms) Filter chain halted as :authenticate_user rendered or redirected Completed 401 Unauthorized in 1373ms (Views: 1351.5ms | ActiveRecord: 1.8ms) Started GET "/" for 127.0.0.1 at 2015-01-27 16:01:11 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.7ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.5ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (2980.1ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (3854.2ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (409.2ms) Spree::Tracker Load (0.5ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (5.6ms) Completed 200 OK in 9509ms (Views: 9463.4ms | ActiveRecord: 29.1ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-01-27 16:01:21 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-01-27 16:01:22 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:22 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:22 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:22 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:22 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:22 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:22 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:22 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:22 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:22 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:22 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:23 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:23 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:23 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:23 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:23 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:23 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:23 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:23 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:23 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:23 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:23 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:23 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:23 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:24 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:24 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:24 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:24 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:24 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:24 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:24 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:24 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:24 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:24 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:24 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:24 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:24 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:25 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:25 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:25 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:25 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:25 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:25 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:25 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:25 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:25 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:25 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:25 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:25 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:25 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:25 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:26 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:26 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:26 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:26 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:26 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:26 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:26 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:26 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:26 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:26 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:26 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:26 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:26 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:27 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:27 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:27 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:27 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:27 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:27 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:27 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:27 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:27 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:27 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:27 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:27 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:27 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:27 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:27 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:28 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:28 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:28 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:28 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:28 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:28 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:28 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-01-27 16:01:28 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-01-27 16:01:29 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.8ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 301ms (Views: 296.0ms | ActiveRecord: 0.0ms) Started GET "/api/products?page=1&per_page=8" for 127.0.0.1 at 2015-01-27 16:01:30 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"8"}  (2.0ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-01-27 21:01:30.227133') AND ("spree_products".available_on <= '2015-01-27 21:01:30.229229') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0) subquery_for_count  (1.1ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-01-27 21:01:30.227133') AND ("spree_products".available_on <= '2015-01-27 21:01:30.229229') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (1.5ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-01-27 21:01:30.227133') AND ("spree_products".available_on <= '2015-01-27 21:01:30.229229') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0 Spree::ProductOptionType Load (0.6ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.8ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Image Load (1.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (1.4ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Price Load (0.9ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::ProductProperty Load (1.6ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY spree_product_properties.position Spree::Property Load (0.7ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (1.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_variants".position ASC Spree::Image Load (1.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.7ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.7ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.8ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (1.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (1.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (5955.2ms) Completed 200 OK in 6007ms (Views: 5939.4ms | ActiveRecord: 52.8ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-01-27 16:01:36 -0500 Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-01-27 16:01:36 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-01-27 16:01:36 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-01-27 16:01:36 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.5ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (188.4ms) Completed 200 OK in 227ms (Views: 212.2ms | ActiveRecord: 7.9ms) Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-01-27 16:01:36 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.9ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (3.0ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (17.9ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (347.7ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.4ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1956.3ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-01-27 16:01:39 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-01-27 16:01:39 -0500 Started PUT "/api/checkouts/R079133342/quick_update" for 127.0.0.1 at 2015-01-27 16:01:44 -0500 Processing by Spree::Api::CheckoutsController#quick_update as JSON Parameters: {"order"=>{"coupon_code"=>"10off"}, "id"=>"R079133342"} Spree::User Load (0.9ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."spree_api_key" = '' LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1 Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.2ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.2ms) rollback transaction  (0.2ms) begin transaction CACHE (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.2ms) rollback transaction Spree::Shipment Exists (0.3ms) SELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? LIMIT 1 [["order_id", 6]]  (0.2ms) begin transaction CACHE (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (1.3ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "address"], ["updated_at", "2015-01-27 21:01:44.580153"]]  (31.7ms) commit transaction  (0.2ms) begin transaction SQL (2.0ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-01-27 21:01:44.657077"], ["name", "order"], ["next_state", "address"], ["previous_state", "cart"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-01-27 21:01:44.657077"]]  (15.8ms) commit transaction  (0.1ms) begin transaction Spree::Order Exists (0.5ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.2ms) commit transaction Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/tax_using_ship_address' LIMIT 1 Spree::Zone Load (0.5ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Shipment Exists (0.3ms) SELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? LIMIT 1 [["order_id", 6]] SQL (0.5ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."adjustable_type" = 'Spree::Shipment' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.6ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."active" = 't' Spree::StockItem Exists (0.5ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" IN (17) LIMIT 1 [["stock_location_id", 1]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 17 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 17 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::ShippingCategory Load (0.4ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.5ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.6ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 2], ["calculable_type", "Spree::ShippingMethod"]] Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 3], ["calculable_type", "Spree::ShippingMethod"]] Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 4], ["calculable_type", "Spree::ShippingMethod"]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 5], ["calculable_type", "Spree::ShippingMethod"]]  (0.2ms) begin transaction  (0.4ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H37347402808%') SQL (2.3ms) INSERT INTO "spree_shipments" ("created_at", "number", "order_id", "state", "stock_location_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-01-27 21:01:45.341752"], ["number", "H37347402808"], ["order_id", 6], ["state", "pending"], ["stock_location_id", 1], ["updated_at", "2015-01-27 21:01:45.341752"]] SQL (1.9ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-01-27 21:01:45.347849"], ["line_item_id", 18], ["order_id", 6], ["shipment_id", 7], ["state", "on_hand"], ["updated_at", "2015-01-27 21:01:45.347849"], ["variant_id", 17]] SQL (0.4ms) UPDATE "spree_shipments" SET "updated_at" = '2015-01-27 21:01:45.353188' WHERE "spree_shipments"."id" = 7 SQL (0.9ms) UPDATE "spree_orders" SET "updated_at" = '2015-01-27 21:01:45.355309' WHERE "spree_orders"."id" = 6 SQL (0.3ms) UPDATE "spree_orders" SET "updated_at" = '2015-01-27 21:01:45.358300' WHERE "spree_orders"."id" = 6  (20.0ms) commit transaction SQL (16.1ms) DELETE FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Cannot transition state via :next from :address (Reason(s): We are unable to calculate shipping rates for the selected items.) /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/state_machine-1.2.0/lib/state_machine/event.rb:252:in `block in add_actions' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/state_machine-1.2.0/lib/state_machine/machine.rb:765:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/state_machine-1.2.0/lib/state_machine/machine.rb:765:in `block (2 levels) in define_helper' /home/josh/Projects/Dynamo/sprangular/lib/sprangular/order_updater.rb:46:in `advance' /home/josh/Projects/Dynamo/sprangular/lib/sprangular/order_updater.rb:37:in `advance_until' /home/josh/Projects/Dynamo/sprangular/lib/sprangular/order_updater.rb:27:in `run' /home/josh/Projects/Dynamo/sprangular/lib/sprangular/order_updater.rb:14:in `initialize' /home/josh/Projects/Dynamo/sprangular/lib/sprangular/order_updater.rb:6:in `new' /home/josh/Projects/Dynamo/sprangular/lib/sprangular/order_updater.rb:6:in `update' /home/josh/Projects/Dynamo/sprangular/app/controllers/spree/api/checkouts_controller_decorator.rb:6:in `quick_update' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/abstract_controller/base.rb:189:in `process_action' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_controller/metal/rendering.rb:10:in `process_action' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/abstract_controller/callbacks.rb:20:in `block in process_action' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:113:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:113:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:149:in `block in halting_and_conditional' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:229:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:229:in `block in halting' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in `block in halting' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in `block in halting' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:149:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:149:in `block in halting_and_conditional' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in `block in halting' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in `block in halting' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:149:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:149:in `block in halting_and_conditional' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in `block in halting' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in `block in halting' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:86:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:86:in `run_callbacks' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/abstract_controller/callbacks.rb:19:in `process_action' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_controller/metal/rescue.rb:29:in `process_action' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.1.9/lib/active_support/notifications.rb:159:in `block in instrument' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.1.9/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.1.9/lib/active_support/notifications.rb:159:in `instrument' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_controller/metal/instrumentation.rb:30:in `process_action' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_controller/metal/params_wrapper.rb:250:in `process_action' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/activerecord-4.1.9/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/abstract_controller/base.rb:136:in `process' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionview-4.1.9/lib/action_view/rendering.rb:30:in `process' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_controller/metal.rb:196:in `dispatch' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_controller/metal.rb:232:in `block in action' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/routing/route_set.rb:82:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/routing/route_set.rb:82:in `dispatch' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/routing/route_set.rb:50:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/journey/router.rb:73:in `block in call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/journey/router.rb:59:in `each' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/journey/router.rb:59:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/routing/route_set.rb:685:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/railties-4.1.9/lib/rails/engine.rb:514:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/railties-4.1.9/lib/rails/railtie.rb:194:in `public_send' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/railties-4.1.9/lib/rails/railtie.rb:194:in `method_missing' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/journey/router.rb:73:in `block in call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/journey/router.rb:59:in `each' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/journey/router.rb:59:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/routing/route_set.rb:685:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/prerender_rails-1.1.1/lib/prerender_rails.rb:97:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/warden-1.2.3/lib/warden/manager.rb:35:in `block in call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/warden-1.2.3/lib/warden/manager.rb:34:in `catch' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/warden-1.2.3/lib/warden/manager.rb:34:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/rack-1.5.2/lib/rack/etag.rb:23:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/rack-1.5.2/lib/rack/conditionalget.rb:35:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/rack-1.5.2/lib/rack/head.rb:11:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/params_parser.rb:27:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/flash.rb:254:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:225:in `context' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:220:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/cookies.rb:562:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/activerecord-4.1.9/lib/active_record/query_cache.rb:36:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/activerecord-4.1.9/lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/activerecord-4.1.9/lib/active_record/migration.rb:380:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:82:in `run_callbacks' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/callbacks.rb:27:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/reloader.rb:73:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/remote_ip.rb:76:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/railties-4.1.9/lib/rails/rack/logger.rb:38:in `call_app' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/railties-4.1.9/lib/rails/rack/logger.rb:20:in `block in call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.1.9/lib/active_support/tagged_logging.rb:68:in `block in tagged' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.1.9/lib/active_support/tagged_logging.rb:26:in `tagged' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.1.9/lib/active_support/tagged_logging.rb:68:in `tagged' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/railties-4.1.9/lib/rails/rack/logger.rb:20:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/request_id.rb:21:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/rack-rewrite-1.5.1/lib/rack/rewrite.rb:24:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/activesupport-4.1.9/lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/static.rb:84:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/rack-1.5.2/lib/rack/sendfile.rb:112:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/railties-4.1.9/lib/rails/engine.rb:514:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/railties-4.1.9/lib/rails/application.rb:144:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/rack-1.5.2/lib/rack/content_length.rb:14:in `call' /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered text template (0.1ms) Completed 422 Unprocessable Entity in 1103ms (Views: 7.3ms | ActiveRecord: 115.8ms) Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/auth_configuration/confirmable' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_products" WHERE "spree_products"."deleted_at" IS NULL Spree::Product Load (0.7ms) SELECT DISTINCT "spree_products".* FROM "spree_products" WHERE "spree_products"."deleted_at" IS NULL Spree::Product Load (0.7ms) SELECT DISTINCT "spree_products".* FROM "spree_products" WHERE "spree_products"."deleted_at" IS NULL  (0.5ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" WHERE "spree_products"."deleted_at" IS NULL  (0.4ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" WHERE "spree_products"."deleted_at" IS NULL  (0.4ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" WHERE "spree_products"."deleted_at" IS NULL  (0.5ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" WHERE "spree_products"."deleted_at" IS NULL Spree::Product Load (1.0ms) SELECT DISTINCT "spree_products".* FROM "spree_products" WHERE "spree_products"."deleted_at" IS NULL Spree::Product Load (0.7ms) SELECT DISTINCT "spree_products"."tax_category_id" FROM "spree_products" WHERE "spree_products"."deleted_at" IS NULL  (0.4ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."tax_category_id") FROM "spree_products" WHERE "spree_products"."deleted_at" IS NULL  (0.4ms) SELECT DISTINCT COUNT(DISTINCT price) FROM "spree_products" WHERE "spree_products"."deleted_at" IS NULL SQLite3::SQLException: no such column: price: SELECT DISTINCT COUNT(DISTINCT price) FROM "spree_products" WHERE "spree_products"."deleted_at" IS NULL  (0.4ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."name") FROM "spree_products" WHERE "spree_products"."deleted_at" IS NULL Spree::Product Load (1.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."deleted_at" IS NULL Spree::Product Load (1.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."deleted_at" IS NULL Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 4]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 5]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 6]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 8]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 9]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 9]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 10]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 12]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 12]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 13]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 13]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 14]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 14]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 15]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 15]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 16]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 16]] Spree::Product Load (1.7ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."deleted_at" IS NULL Spree::Product Load (0.7ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."deleted_at" IS NULL Spree::Product Load (1.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."deleted_at" IS NULL Spree::Product Load (1.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."deleted_at" IS NULL Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 4]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 5]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 6]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 10]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 12]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 12]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 13]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 13]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 14]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 14]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 15]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 15]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 16]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 16]] Spree::Product Load (1.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."deleted_at" IS NULL Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 4]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 5]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 6]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 10]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 12]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 12]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 13]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 13]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 14]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 14]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 15]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 15]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 16]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 16]] Started GET "/" for 127.0.0.1 at 2015-01-28 00:19:32 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (2.9ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.7ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (3334.2ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (4460.1ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (464.8ms) Spree::Tracker Load (0.6ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (4.2ms) Completed 200 OK in 8654ms (Views: 8592.1ms | ActiveRecord: 37.0ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-01-28 00:19:42 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-01-28 00:19:42 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:42 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:42 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:42 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:42 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:43 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:43 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:43 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:43 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:43 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:43 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:43 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:43 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:43 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:43 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:44 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:44 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:44 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:44 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:44 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:44 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:44 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:44 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:44 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:44 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:44 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:45 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:45 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:45 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:45 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:45 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:45 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:45 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:45 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:45 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:45 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:45 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:45 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:45 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:45 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:46 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:46 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:46 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:46 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:46 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:46 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:46 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:46 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:46 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:46 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:46 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:46 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:46 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:47 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:47 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:47 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:47 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:47 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:47 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:47 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:47 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:47 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-01-28 00:19:47 -0500 Started GET "/" for 127.0.0.1 at 2015-02-02 14:18:43 -0500 ActiveRecord::SchemaMigration Load (0.9ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.4ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.4ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.7ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (2559.6ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (3964.5ms) WARNING: The button mixin is deprecated and will be removed in the next major version release on line 64 of /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/bourbon-4.1.1/app/assets/stylesheets/_bourbon-deprecated-upcoming.scss, in `button' from line 246 of /home/josh/Projects/Dynamo/sprangular/app/assets/stylesheets/modules/_navigation.sass from line 7 of /home/josh/Projects/Dynamo/sprangular/app/assets/stylesheets/sprangular.sass WARNING: The button mixin is deprecated and will be removed in the next major version release on line 64 of /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/bourbon-4.1.1/app/assets/stylesheets/_bourbon-deprecated-upcoming.scss, in `button' from line 283 of /home/josh/Projects/Dynamo/sprangular/app/assets/stylesheets/modules/_navigation.sass from line 7 of /home/josh/Projects/Dynamo/sprangular/app/assets/stylesheets/sprangular.sass Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (271.7ms) Spree::Tracker Load (0.2ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (10.6ms) Completed 200 OK in 12967ms (Views: 12599.9ms | ActiveRecord: 38.6ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-02 14:18:56 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-02 14:18:56 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:56 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:57 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:57 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:57 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:57 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:57 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:57 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:57 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:57 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:57 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:57 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:57 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:57 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:57 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:57 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:58 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:58 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:58 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:58 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:58 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:58 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:58 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:58 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:58 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:58 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:58 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:58 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:58 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:58 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:58 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:58 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:59 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:59 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:59 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:59 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:59 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:59 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:59 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:59 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:59 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:59 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:59 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:59 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-02 14:18:59 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-02 14:19:00 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-02 14:19:00 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-02 14:19:00 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-02 14:19:00 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-02 14:19:00 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-02 14:19:00 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-02 14:19:00 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 14:19:00 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-02 14:19:00 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-02 14:19:00 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-02 14:19:00 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-02 14:19:00 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-02 14:19:00 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-02 14:19:00 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-02 14:19:00 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-02 14:19:01 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-02 14:19:01 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-02 14:19:01 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 14:19:01 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-02 14:19:01 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 14:19:01 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 14:19:01 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-02 14:19:01 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-02 14:19:01 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-02 14:19:01 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-02 14:19:01 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-02 14:19:01 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-02 14:19:01 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-02 14:19:01 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-02 14:19:02 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-02 14:19:02 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-02 14:19:02 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-02 14:19:02 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-02 14:19:02 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-02 14:19:03 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (2.6ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 344ms (Views: 339.0ms | ActiveRecord: 0.0ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-02 14:19:03 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-02 14:19:03 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (197.0ms) Completed 200 OK in 240ms (Views: 218.2ms | ActiveRecord: 6.5ms) Started GET "/api/products?page=1&per_page=8" for 127.0.0.1 at 2015-02-02 14:19:04 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"8"}  (1.1ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 19:19:04.237880') AND ("spree_products".available_on <= '2015-02-02 19:19:04.239421') LIMIT 8 OFFSET 0) subquery_for_count  (0.7ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 19:19:04.237880') AND ("spree_products".available_on <= '2015-02-02 19:19:04.239421') Spree::Product Load (1.6ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 19:19:04.237880') AND ("spree_products".available_on <= '2015-02-02 19:19:04.239421') LIMIT 8 OFFSET 0 Spree::ProductOptionType Load (0.7ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.5ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.3ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Price Load (1.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::ProductProperty Load (1.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY spree_product_properties.position Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_variants".position ASC Spree::Image Load (1.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.5ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (5109.3ms) Completed 200 OK in 5149ms (Views: 5096.9ms | ActiveRecord: 43.4ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-02 14:19:09 -0500 Started POST "/api/cart/add_variant" for 127.0.0.1 at 2015-02-02 14:19:31 -0500 Processing by Sprangular::CartsController#add_variant as JSON Parameters: {"variant_id"=>"22", "quantity"=>"1"} Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."id" = ? LIMIT 1 [["id", 22]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Unpermitted parameters: currency Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" = ? [["variant_id", 22]]  (0.2ms) begin transaction Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::TaxCategory Load (0.3ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' SQL (2.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2015-02-02 19:19:31.617493"], ["currency", "USD"], ["order_id", 6], ["price", 19.99], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2015-02-02 19:19:31.617493"], ["variant_id", 22]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-02 19:19:31.683359' WHERE "spree_orders"."id" = 6 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.7ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] SQL (0.4ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-02 19:19:31.717869' WHERE "spree_line_items"."id" = 19  (22.1ms) commit transaction  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.4ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.3ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order'))  (0.5ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.5ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.5ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.4ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.4ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.4ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.4ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.4ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (19.0ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 39.98, "item_count" = 2, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 39.98, "updated_at" = '2015-02-02 19:19:31.794935' WHERE "spree_orders"."id" = 6 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::Shipment Exists (0.3ms) SELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? LIMIT 1 [["order_id", 6]] Spree::Promotion Load (0.7ms) SELECT DISTINCT "spree_promotions".* FROM "spree_promotions" LEFT OUTER JOIN "spree_orders_promotions" ON "spree_promotions"."id" = "spree_orders_promotions"."promotion_id" WHERE (starts_at IS NULL OR starts_at < '2015-02-02 19:19:31.835251') AND (expires_at IS NULL OR expires_at > '2015-02-02 19:19:31.835932') AND (("spree_promotions"."code" IS NULL AND "spree_promotions"."path" IS NULL OR "spree_orders_promotions"."order_id" = 6)) Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] SQL (18.7ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-02 19:19:31.851627' WHERE "spree_line_items"."id" = 19  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.3ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order'))  (0.2ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.2ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (16.7ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 39.98, "item_count" = 2, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 39.98, "updated_at" = '2015-02-02 19:19:31.916477' WHERE "spree_orders"."id" = 6 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) SELECT COUNT(*) FROM "spree_inventory_units" WHERE "spree_inventory_units"."line_item_id" = ? [["line_item_id", 19]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Shipment Exists (0.2ms) SELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? LIMIT 1 [["order_id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (5983.3ms) Completed 200 OK in 6471ms (Views: 5969.1ms | ActiveRecord: 139.1ms) Started GET "/assets/404.html" for 127.0.0.1 at 2015-02-02 14:19:53 -0500 Started GET "/" for 127.0.0.1 at 2015-02-02 14:22:03 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.1ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (3763.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (4278.3ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (185.7ms) Spree::Tracker Load (0.2ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (1.8ms) Completed 200 OK in 6057ms (Views: 6028.4ms | ActiveRecord: 20.9ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-02 14:22:10 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:10 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:10 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:10 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-02 14:22:10 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:10 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:10 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:10 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:10 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:10 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:10 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:10 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:10 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:10 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:10 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:10 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:11 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:11 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:11 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:11 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:11 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:11 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:11 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:11 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:11 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:11 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:11 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:11 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:11 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:11 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:11 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:11 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:11 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:11 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:11 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:11 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:11 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:11 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:12 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:12 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:12 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:12 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:12 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:12 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:12 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:12 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:12 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:12 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:12 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:12 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:12 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:12 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:12 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:12 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:12 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:12 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:12 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:12 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:13 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:13 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:13 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:13 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:13 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:13 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:13 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:13 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:13 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:13 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:13 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:13 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:13 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:13 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:13 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:13 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:13 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:13 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:13 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:13 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:13 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:14 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-02 14:22:14 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (0.8ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 175ms (Views: 172.0ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-02 14:22:14 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.7ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 19:22:14.583673') AND ("spree_products".available_on <= '2015-02-02 19:22:14.584711') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (1548.8ms) Completed 200 OK in 1612ms (Views: 1587.1ms | ActiveRecord: 16.7ms) Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-02 14:22:16 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.3ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (113.8ms) Completed 200 OK in 140ms (Views: 130.7ms | ActiveRecord: 4.5ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-02 14:22:16 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-02 14:22:16 -0500 Started GET "/" for 127.0.0.1 at 2015-02-02 14:22:34 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.1ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (3765.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (4314.3ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (281.6ms) Spree::Tracker Load (0.3ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (1.8ms) Completed 200 OK in 6178ms (Views: 6148.0ms | ActiveRecord: 22.4ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-02 14:22:40 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-02 14:22:40 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:40 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:40 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:41 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:41 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:41 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:41 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:41 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:41 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:41 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:41 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:41 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:41 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:41 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:41 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:41 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:41 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:41 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:41 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:41 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:41 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:41 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:41 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:41 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:42 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:42 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:42 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:42 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:42 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:42 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:42 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:42 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:42 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:42 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:42 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:42 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:42 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:42 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:42 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:42 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:42 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:42 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:42 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:42 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:42 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:42 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:43 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:43 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:43 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:43 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:43 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:43 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:43 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:43 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:43 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:43 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:43 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:43 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:43 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:43 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:43 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:43 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:43 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:43 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:43 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:43 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:43 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:43 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:44 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:44 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:44 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:44 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:44 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:44 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:44 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:44 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:44 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:44 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-02 14:22:44 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-02 14:22:44 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (0.8ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 198ms (Views: 194.5ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-02 14:22:45 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 19:22:45.090673') AND ("spree_products".available_on <= '2015-02-02 19:22:45.091408') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (1517.5ms) Completed 200 OK in 1559ms (Views: 1537.2ms | ActiveRecord: 16.0ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-02 14:22:46 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-02 14:22:46 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-02 14:22:46 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (126.6ms) Completed 200 OK in 147ms (Views: 137.8ms | ActiveRecord: 4.9ms) Started GET "/" for 127.0.0.1 at 2015-02-02 14:23:08 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (3946.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (4479.0ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (192.8ms) Spree::Tracker Load (0.2ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (1.7ms) Completed 200 OK in 6352ms (Views: 6320.1ms | ActiveRecord: 23.4ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-02 14:23:15 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-02 14:23:15 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:15 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:15 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:15 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:15 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:15 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:15 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:16 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:16 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:16 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:16 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:16 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:16 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:16 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:16 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:16 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:16 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:16 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:16 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:16 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:16 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:16 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:16 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:16 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:16 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:16 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:16 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:16 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:17 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:17 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:17 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:17 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:17 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:17 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:17 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:17 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:17 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:17 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:17 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:17 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:17 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:17 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:17 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:17 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:17 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:17 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:17 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:17 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:18 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:18 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:18 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:18 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:18 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:18 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:18 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:18 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:18 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:18 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:18 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:18 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:18 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:18 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:18 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:18 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:18 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:18 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:18 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:18 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:18 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:18 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:19 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:19 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:19 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:19 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:19 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:19 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:19 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:19 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:19 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-02 14:23:19 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-02 14:23:19 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (0.9ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 191ms (Views: 186.4ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-02 14:23:19 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 19:23:20.007204') AND ("spree_products".available_on <= '2015-02-02 19:23:20.008354') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (1514.5ms) Completed 200 OK in 1558ms (Views: 1534.5ms | ActiveRecord: 16.3ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-02 14:23:21 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-02 14:23:21 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.3ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (141.7ms) Completed 200 OK in 161ms (Views: 151.9ms | ActiveRecord: 5.4ms) Started GET "/" for 127.0.0.1 at 2015-02-02 14:23:37 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.1ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (3887.8ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (4412.2ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (311.5ms) Spree::Tracker Load (0.2ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (1.7ms) Completed 200 OK in 6174ms (Views: 6142.9ms | ActiveRecord: 23.1ms) Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-02 14:23:43 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:43 -0500 Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-02 14:23:43 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:43 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:43 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:43 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:43 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:44 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:44 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:44 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:44 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:44 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:44 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:44 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:44 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:44 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:44 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:44 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:44 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:44 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:44 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:44 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:44 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:44 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:44 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:45 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:45 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:45 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:45 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:45 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:45 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:45 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:45 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:45 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:45 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:45 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:45 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:45 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:45 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:45 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:45 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:45 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:45 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:45 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:46 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:46 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:46 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:46 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:46 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:46 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:46 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:46 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:46 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:46 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:46 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:46 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:46 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:46 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:46 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:46 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:46 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:46 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:46 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:46 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:46 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:46 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:46 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:47 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:47 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:47 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:47 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:47 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:47 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:47 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:47 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:47 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:47 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:47 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:47 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-02 14:23:47 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-02 14:23:48 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.1ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 221ms (Views: 212.9ms | ActiveRecord: 0.0ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-02 14:23:48 -0500 Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-02 14:23:48 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 19:23:48.528179') AND ("spree_products".available_on <= '2015-02-02 19:23:48.528902') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (1629.9ms) Completed 200 OK in 1671ms (Views: 1647.1ms | ActiveRecord: 18.2ms) Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-02 14:23:50 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (196.0ms) Completed 200 OK in 221ms (Views: 208.2ms | ActiveRecord: 8.1ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-02 14:23:50 -0500 Started GET "/assets/account/signin.html" for 127.0.0.1 at 2015-02-02 14:27:19 -0500 Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-02 14:27:26 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 19:27:26.447494') AND ("spree_products".available_on <= '2015-02-02 19:27:26.448196') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (1645.9ms) Completed 200 OK in 1686ms (Views: 1664.3ms | ActiveRecord: 16.6ms) Started GET "/api/products?page=1&per_page=8&q%5Bname_or_description_cont%5D=shirt" for 127.0.0.1 at 2015-02-02 14:34:51 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"8", "q"=>{"name_or_description_cont"=>"shirt"}}  (0.6ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 19:34:51.486103') AND ("spree_products".available_on <= '2015-02-02 19:34:51.487444') AND (("spree_products"."name" LIKE '%shirt%' OR "spree_products"."description" LIKE '%shirt%')) LIMIT 8 OFFSET 0) subquery_for_count  (0.6ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 19:34:51.486103') AND ("spree_products".available_on <= '2015-02-02 19:34:51.487444') AND (("spree_products"."name" LIKE '%shirt%' OR "spree_products"."description" LIKE '%shirt%')) Spree::Product Load (1.4ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 19:34:51.486103') AND ("spree_products".available_on <= '2015-02-02 19:34:51.487444') AND (("spree_products"."name" LIKE '%shirt%' OR "spree_products"."description" LIKE '%shirt%')) LIMIT 8 OFFSET 0 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (5, 10) Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (5, 10) Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (7, 11, 10) Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (5, 10) Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (5, 10) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.4ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (5, 10) Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (5, 10) Spree::ProductProperty Load (0.7ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (5, 10) ORDER BY spree_product_properties.position Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (5, 10) ORDER BY "spree_variants".position ASC Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (638.6ms) Completed 200 OK in 672ms (Views: 649.2ms | ActiveRecord: 11.9ms) Started GET "/api/products?page=1&per_page=8&q%5Bname_or_description_cont%5D=shirt" for 127.0.0.1 at 2015-02-02 14:34:58 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"8", "q"=>{"name_or_description_cont"=>"shirt"}}  (0.5ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 19:34:58.911289') AND ("spree_products".available_on <= '2015-02-02 19:34:58.913172') AND (("spree_products"."name" LIKE '%shirt%' OR "spree_products"."description" LIKE '%shirt%')) LIMIT 8 OFFSET 0) subquery_for_count  (0.4ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 19:34:58.911289') AND ("spree_products".available_on <= '2015-02-02 19:34:58.913172') AND (("spree_products"."name" LIKE '%shirt%' OR "spree_products"."description" LIKE '%shirt%')) Spree::Product Load (0.4ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 19:34:58.911289') AND ("spree_products".available_on <= '2015-02-02 19:34:58.913172') AND (("spree_products"."name" LIKE '%shirt%' OR "spree_products"."description" LIKE '%shirt%')) LIMIT 8 OFFSET 0 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (5, 10) Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (5, 10) Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (7, 11, 10) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (5, 10) Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (5, 10) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.2ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (5, 10) Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (5, 10) Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (5, 10) ORDER BY spree_product_properties.position Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (5, 10) ORDER BY "spree_variants".position ASC Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (580.6ms) Completed 200 OK in 607ms (Views: 587.1ms | ActiveRecord: 8.0ms) Started GET "/api/products?page=1&per_page=8&q%5Bname_or_description_cont%5D=shirt" for 127.0.0.1 at 2015-02-02 14:35:02 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"8", "q"=>{"name_or_description_cont"=>"shirt"}}  (0.8ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 19:35:02.618620') AND ("spree_products".available_on <= '2015-02-02 19:35:02.619505') AND (("spree_products"."name" LIKE '%shirt%' OR "spree_products"."description" LIKE '%shirt%')) LIMIT 8 OFFSET 0) subquery_for_count  (0.4ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 19:35:02.618620') AND ("spree_products".available_on <= '2015-02-02 19:35:02.619505') AND (("spree_products"."name" LIKE '%shirt%' OR "spree_products"."description" LIKE '%shirt%')) Spree::Product Load (0.4ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 19:35:02.618620') AND ("spree_products".available_on <= '2015-02-02 19:35:02.619505') AND (("spree_products"."name" LIKE '%shirt%' OR "spree_products"."description" LIKE '%shirt%')) LIMIT 8 OFFSET 0 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (5, 10) Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (5, 10) Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (7, 11, 10) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (5, 10) Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (5, 10) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.2ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (5, 10) Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (5, 10) Spree::ProductProperty Load (0.6ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (5, 10) ORDER BY spree_product_properties.position Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (5, 10) ORDER BY "spree_variants".position ASC Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (568.8ms) Completed 200 OK in 592ms (Views: 575.7ms | ActiveRecord: 8.8ms) Started GET "/api/products?page=1&per_page=8&q%5Bname_or_description_cont%5D=shirt" for 127.0.0.1 at 2015-02-02 14:35:05 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"8", "q"=>{"name_or_description_cont"=>"shirt"}}  (0.5ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 19:35:05.182585') AND ("spree_products".available_on <= '2015-02-02 19:35:05.183847') AND (("spree_products"."name" LIKE '%shirt%' OR "spree_products"."description" LIKE '%shirt%')) LIMIT 8 OFFSET 0) subquery_for_count  (0.5ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 19:35:05.182585') AND ("spree_products".available_on <= '2015-02-02 19:35:05.183847') AND (("spree_products"."name" LIKE '%shirt%' OR "spree_products"."description" LIKE '%shirt%')) Spree::Product Load (0.6ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 19:35:05.182585') AND ("spree_products".available_on <= '2015-02-02 19:35:05.183847') AND (("spree_products"."name" LIKE '%shirt%' OR "spree_products"."description" LIKE '%shirt%')) LIMIT 8 OFFSET 0 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (5, 10) Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (5, 10) Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (7, 11, 10) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (5, 10) Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (5, 10) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.2ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (5, 10) Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (5, 10) Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (5, 10) ORDER BY spree_product_properties.position Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (5, 10) ORDER BY "spree_variants".position ASC Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (553.0ms) Completed 200 OK in 575ms (Views: 559.2ms | ActiveRecord: 8.0ms) Started GET "/api/products?page=1&per_page=8" for 127.0.0.1 at 2015-02-02 14:35:11 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"8"}  (0.6ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 19:35:11.330823') AND ("spree_products".available_on <= '2015-02-02 19:35:11.331739') LIMIT 8 OFFSET 0) subquery_for_count  (0.5ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 19:35:11.330823') AND ("spree_products".available_on <= '2015-02-02 19:35:11.331739') Spree::Product Load (0.5ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 19:35:11.330823') AND ("spree_products".available_on <= '2015-02-02 19:35:11.331739') LIMIT 8 OFFSET 0 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.3ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::ProductProperty Load (0.6ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY spree_product_properties.position Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_variants".position ASC Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.4ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (3312.7ms) Completed 200 OK in 3331ms (Views: 3299.1ms | ActiveRecord: 27.4ms) Started POST "/api/cart/add_variant" for 127.0.0.1 at 2015-02-02 14:35:20 -0500 Processing by Sprangular::CartsController#add_variant as JSON Parameters: {"variant_id"=>"7", "quantity"=>"1"} Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Unpermitted parameters: currency Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" = ? [["variant_id", 7]]  (0.1ms) begin transaction Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' SQL (1.9ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2015-02-02 19:35:20.414649"], ["currency", "USD"], ["order_id", 6], ["price", 19.99], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2015-02-02 19:35:20.414649"], ["variant_id", 7]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-02 19:35:20.426413' WHERE "spree_orders"."id" = 6 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] SQL (0.4ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-02 19:35:20.446876' WHERE "spree_line_items"."id" = 20  (24.7ms) commit transaction  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.2ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order'))  (0.2ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.2ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (15.2ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 59.97, "item_count" = 3, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 59.97, "updated_at" = '2015-02-02 19:35:20.512306' WHERE "spree_orders"."id" = 6 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::Shipment Exists (0.2ms) SELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? LIMIT 1 [["order_id", 6]] Spree::Promotion Load (0.5ms) SELECT DISTINCT "spree_promotions".* FROM "spree_promotions" LEFT OUTER JOIN "spree_orders_promotions" ON "spree_promotions"."id" = "spree_orders_promotions"."promotion_id" WHERE (starts_at IS NULL OR starts_at < '2015-02-02 19:35:20.535946') AND (expires_at IS NULL OR expires_at > '2015-02-02 19:35:20.536380') AND (("spree_promotions"."code" IS NULL AND "spree_promotions"."path" IS NULL OR "spree_orders_promotions"."order_id" = 6)) Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] SQL (18.4ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-02 19:35:20.548550' WHERE "spree_line_items"."id" = 20  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.3ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.7ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order'))  (0.2ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.2ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (70.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 59.97, "item_count" = 3, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 59.97, "updated_at" = '2015-02-02 19:35:20.603778' WHERE "spree_orders"."id" = 6 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_inventory_units" WHERE "spree_inventory_units"."line_item_id" = ? [["line_item_id", 20]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Shipment Exists (0.1ms) SELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? LIMIT 1 [["order_id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6693.7ms) Completed 200 OK in 7036ms (Views: 6677.9ms | ActiveRecord: 184.7ms) Started GET "/" for 127.0.0.1 at 2015-02-02 14:54:53 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (1.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6582.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7596.7ms) WARNING: The button mixin is deprecated and will be removed in the next major version release on line 64 of /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/bourbon-4.1.1/app/assets/stylesheets/_bourbon-deprecated-upcoming.scss, in `button' from line 246 of /home/josh/Projects/Dynamo/sprangular/app/assets/stylesheets/modules/_navigation.sass from line 8 of /home/josh/Projects/Dynamo/sprangular/app/assets/stylesheets/sprangular.sass WARNING: The button mixin is deprecated and will be removed in the next major version release on line 64 of /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/bourbon-4.1.1/app/assets/stylesheets/_bourbon-deprecated-upcoming.scss, in `button' from line 283 of /home/josh/Projects/Dynamo/sprangular/app/assets/stylesheets/modules/_navigation.sass from line 8 of /home/josh/Projects/Dynamo/sprangular/app/assets/stylesheets/sprangular.sass Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (427.4ms) Spree::Tracker Load (0.5ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.1ms) Completed 200 OK in 14657ms (Views: 14603.1ms | ActiveRecord: 41.4ms) Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:09 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:09 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:09 -0500 Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-02 14:55:09 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:09 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:09 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-02 14:55:09 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:09 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:09 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:10 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:10 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:10 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:10 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:10 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:10 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:10 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:10 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:10 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:10 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:10 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:10 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:10 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:10 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:10 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:11 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:11 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:11 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:11 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:11 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:11 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:11 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:11 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:11 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:11 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:11 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:11 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:11 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:11 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:12 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:12 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:12 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:12 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:12 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:12 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:12 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:12 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:12 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:12 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:12 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:12 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:12 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:12 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:13 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:13 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:13 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:13 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:13 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:13 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:13 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:13 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:13 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:13 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:13 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:13 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:13 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:13 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:14 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:14 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:14 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:14 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:14 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:14 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:14 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:14 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:14 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:14 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:14 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:14 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:14 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:15 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:15 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:15 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:15 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:15 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:15 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:16 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:16 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:16 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:16 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:16 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:16 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:16 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:16 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:16 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:16 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:16 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-02 14:55:17 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.2ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 317ms (Views: 312.4ms | ActiveRecord: 0.0ms) Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-02 14:55:17 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (159.2ms) Completed 200 OK in 198ms (Views: 181.7ms | ActiveRecord: 6.1ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-02 14:55:17 -0500 Started GET "/api/products?page=1&per_page=8" for 127.0.0.1 at 2015-02-02 14:55:18 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"8"}  (0.7ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 19:55:18.124313') AND ("spree_products".available_on <= '2015-02-02 19:55:18.125813') LIMIT 8 OFFSET 0) subquery_for_count  (1.0ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 19:55:18.124313') AND ("spree_products".available_on <= '2015-02-02 19:55:18.125813') Spree::Product Load (1.6ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 19:55:18.124313') AND ("spree_products".available_on <= '2015-02-02 19:55:18.125813') LIMIT 8 OFFSET 0 Spree::ProductOptionType Load (0.6ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.6ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Image Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.4ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Price Load (0.6ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::ProductProperty Load (1.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY spree_product_properties.position Spree::Property Load (0.6ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (1.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_variants".position ASC Spree::Image Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.4ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.8ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (5113.9ms) Completed 200 OK in 5148ms (Views: 5094.6ms | ActiveRecord: 44.2ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-02 14:55:23 -0500 Started GET "/" for 127.0.0.1 at 2015-02-02 14:55:31 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6588.8ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7394.2ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (299.0ms) Spree::Tracker Load (0.3ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.4ms) Completed 200 OK in 10138ms (Views: 10085.0ms | ActiveRecord: 40.0ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-02 14:55:42 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-02 14:55:42 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:42 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:42 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:42 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:42 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:42 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:42 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:42 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:43 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:43 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:43 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:43 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:43 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:43 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:43 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:43 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:43 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:43 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:43 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:43 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:43 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:43 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:44 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:44 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:44 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:44 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:44 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:44 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:44 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:44 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:44 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:44 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:44 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:44 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:44 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:44 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:44 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:44 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:45 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:45 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:45 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:45 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:45 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:45 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:45 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:45 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:45 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:45 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:45 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:45 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:45 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:46 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:46 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:46 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:46 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:46 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:46 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:46 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:46 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:46 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:46 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:46 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:46 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:46 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:46 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:46 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:46 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:46 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:47 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:47 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:47 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:47 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:47 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:47 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:47 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:47 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:47 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:47 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:47 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-02 14:55:47 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-02 14:55:48 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.7ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 347ms (Views: 333.9ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-02 14:55:48 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 19:55:48.762242') AND ("spree_products".available_on <= '2015-02-02 19:55:48.763510') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2400.4ms) Completed 200 OK in 2469ms (Views: 2432.0ms | ActiveRecord: 24.5ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-02 14:55:51 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-02 14:55:51 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-02 14:55:51 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.5ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (208.7ms) Completed 200 OK in 241ms (Views: 225.9ms | ActiveRecord: 8.4ms) Started GET "/" for 127.0.0.1 at 2015-02-02 14:56:31 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.5ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6795.9ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7585.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (297.3ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.1ms) Completed 200 OK in 12001ms (Views: 11944.6ms | ActiveRecord: 42.8ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-02 14:56:43 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:44 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:44 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:44 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-02 14:56:44 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:44 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:44 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:44 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:44 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:44 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:44 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:44 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:44 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:44 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:44 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:44 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:45 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:45 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:45 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:45 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:45 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:45 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:45 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:45 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:45 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:45 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:45 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:45 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:45 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:46 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:46 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:46 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:46 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:46 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:46 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:46 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:46 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:46 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:46 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:46 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:46 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:46 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:46 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:46 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:46 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:47 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:47 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:47 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:47 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:47 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:47 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:47 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:47 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:47 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:47 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:47 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:47 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:47 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:48 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:48 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:48 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:48 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:48 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:48 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:48 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:48 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:48 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:48 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:48 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:48 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:48 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:48 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:48 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:48 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:49 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:49 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:49 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:49 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:49 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:49 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:49 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:50 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:50 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:50 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:50 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:50 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:50 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:51 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:51 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:51 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:51 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:51 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-02 14:56:51 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-02 14:56:51 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.3ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 337ms (Views: 330.9ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-02 14:56:52 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.9ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 19:56:52.142788') AND ("spree_products".available_on <= '2015-02-02 19:56:52.145206') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (1.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.5ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2992.3ms) Completed 200 OK in 3076ms (Views: 3031.9ms | ActiveRecord: 29.3ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-02 14:56:55 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-02 14:56:55 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (228.9ms) Completed 200 OK in 267ms (Views: 250.7ms | ActiveRecord: 8.7ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-02 14:56:55 -0500 Started GET "/" for 127.0.0.1 at 2015-02-02 15:26:23 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (4157.1ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (4685.8ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (196.9ms) Spree::Tracker Load (0.3ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.2ms) Completed 200 OK in 7594ms (Views: 7557.0ms | ActiveRecord: 27.2ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-02 15:26:31 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-02 15:26:31 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:31 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:31 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:31 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:31 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:31 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:31 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:31 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:31 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:32 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:32 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:32 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:32 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:32 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:32 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:32 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:32 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:32 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:32 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:32 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:32 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:32 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:32 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:32 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:32 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:32 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:32 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:32 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:32 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:33 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:33 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:33 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:33 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:33 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:33 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:33 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:33 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:33 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:33 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:33 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:33 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:33 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:33 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:33 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:33 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:34 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:34 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:34 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:34 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:34 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:34 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:34 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:34 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:34 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:34 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:34 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:34 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:34 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:34 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:34 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:34 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:35 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:35 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:35 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:35 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:35 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:35 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:35 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:35 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:35 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:35 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:35 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:35 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:35 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:35 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:35 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:36 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:36 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:36 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-02 15:26:36 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-02 15:26:36 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.1ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 255ms (Views: 248.1ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-02 15:26:37 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 20:26:37.147830') AND ("spree_products".available_on <= '2015-02-02 20:26:37.149573') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.9ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.8ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (1615.0ms) Completed 200 OK in 1685ms (Views: 1657.3ms | ActiveRecord: 19.0ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-02 15:26:38 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-02 15:26:38 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.3ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (120.5ms) Completed 200 OK in 140ms (Views: 131.4ms | ActiveRecord: 5.2ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-02 15:26:39 -0500 Started GET "/" for 127.0.0.1 at 2015-02-02 15:33:08 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.1ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (4245.6ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (4805.8ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (286.4ms) Spree::Tracker Load (0.3ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.3ms) Completed 200 OK in 7812ms (Views: 7777.1ms | ActiveRecord: 26.3ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-02 15:33:17 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-02 15:33:17 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:17 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:17 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:17 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:17 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:17 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:17 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:17 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:17 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:17 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:17 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:17 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:17 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:17 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:17 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:18 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:18 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:18 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:18 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:18 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:18 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:18 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:18 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:18 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:18 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:18 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:18 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:18 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:18 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:18 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:18 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:18 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:18 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:18 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:18 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:18 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:19 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:19 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:19 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:19 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:19 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:19 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:19 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:19 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:19 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:19 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:19 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:19 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:19 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:19 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:19 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:19 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:19 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:19 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:19 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:19 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:19 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:20 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:20 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:20 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:20 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:20 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:20 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:20 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:20 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:20 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:20 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:20 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:20 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:20 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:20 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:20 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:20 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:20 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:20 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:20 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:20 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:21 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:21 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-02 15:33:21 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-02 15:33:21 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.2ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 230ms (Views: 226.0ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-02 15:33:21 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 20:33:21.971428') AND ("spree_products".available_on <= '2015-02-02 20:33:21.972395') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2191.3ms) Completed 200 OK in 2236ms (Views: 2207.5ms | ActiveRecord: 21.2ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-02 15:33:24 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-02 15:33:24 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-02 15:33:24 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (192.6ms) Completed 200 OK in 222ms (Views: 207.9ms | ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2015-02-02 15:33:51 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.8ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.8ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (5758.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (6194.5ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (459.7ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.1ms) Completed 200 OK in 11109ms (Views: 11065.5ms | ActiveRecord: 34.9ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-02 15:34:03 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:03 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:03 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-02 15:34:03 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:03 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:03 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:03 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:03 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:03 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:03 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:03 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:04 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:04 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:04 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:04 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:04 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:04 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:04 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:04 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:04 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:04 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:04 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:04 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:04 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:04 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:04 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:04 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:05 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:05 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:05 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:05 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:05 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:05 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:05 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:05 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:05 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:05 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:05 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:05 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:05 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:06 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:06 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:06 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:06 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:06 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:06 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:06 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:06 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:06 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:06 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:06 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:06 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:06 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:06 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:06 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:06 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:07 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:07 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:07 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:07 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:07 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:07 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:07 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:07 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:07 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:07 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:07 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:07 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:07 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:07 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:08 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:08 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:08 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:08 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:08 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:08 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:08 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:08 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:08 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:08 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-02 15:34:08 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-02 15:34:09 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.2ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 309ms (Views: 300.6ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-02 15:34:10 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 20:34:10.566788') AND ("spree_products".available_on <= '2015-02-02 20:34:10.568094') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2522.4ms) Completed 200 OK in 2584ms (Views: 2549.6ms | ActiveRecord: 25.2ms) Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-02 15:34:13 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (171.8ms) Completed 200 OK in 202ms (Views: 189.6ms | ActiveRecord: 7.5ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-02 15:34:13 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-02 15:34:13 -0500 Started GET "/" for 127.0.0.1 at 2015-02-02 15:36:25 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.1ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (4382.0ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (4891.9ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (182.4ms) Spree::Tracker Load (0.3ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.3ms) Completed 200 OK in 7776ms (Views: 7739.7ms | ActiveRecord: 27.0ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-02 15:36:33 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:33 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:33 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-02 15:36:33 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:33 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:34 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:34 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:34 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:34 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:34 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:34 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:34 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:34 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:34 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:34 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:34 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:34 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:34 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:34 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:34 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:34 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:34 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:34 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:35 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:35 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:35 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:35 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:35 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:35 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:35 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:35 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:35 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:35 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:35 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:35 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:35 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:35 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:35 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:35 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:35 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:35 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:35 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:35 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:36 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:36 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:36 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:36 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:36 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:36 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:36 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:36 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:36 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:36 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:36 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:36 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:36 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:36 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:36 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:36 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:36 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:36 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:36 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:36 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:37 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:37 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:37 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:37 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:37 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:37 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:37 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:37 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:37 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:37 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:37 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:37 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:37 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:37 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:37 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:37 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:38 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-02 15:36:38 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-02 15:36:39 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (2.0ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 405ms (Views: 395.0ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-02 15:36:39 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.8ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 20:36:39.656964') AND ("spree_products".available_on <= '2015-02-02 20:36:39.660582') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (1.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2320.1ms) Completed 200 OK in 2390ms (Views: 2348.5ms | ActiveRecord: 24.5ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-02 15:36:42 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-02 15:36:42 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (181.2ms) Completed 200 OK in 209ms (Views: 195.4ms | ActiveRecord: 8.0ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-02 15:36:42 -0500 Started GET "/" for 127.0.0.1 at 2015-02-02 15:46:15 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (4518.8ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (5065.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (417.8ms) Completed 500 Internal Server Error in 6083ms ActionView::Template::Error (SyntaxError: [stdin]:4:221: unexpected , (in /home/josh/Projects/Dynamo/sprangular/app/assets/javascripts/sprangular/directives/variantSelection.coffee)): 26: 27: ng-include(src="'assets/layout/footer.html'") 28: 29: = javascript_include_tag "application" 30: 31: = yield 32: execjs (2.2.2) lib/execjs/external_runtime.rb:62:in `extract_result' execjs (2.2.2) lib/execjs/external_runtime.rb:29:in `exec' execjs (2.2.2) lib/execjs/external_runtime.rb:18:in `eval' execjs (2.2.2) lib/execjs/external_runtime.rb:36:in `call' coffee-script (2.3.0) lib/coffee_script.rb:76:in `compile' tilt (1.4.1) lib/tilt/coffee.rb:46:in `evaluate' tilt (1.4.1) lib/tilt/template.rb:103:in `render' sprockets (2.12.3) lib/sprockets/context.rb:197:in `block in evaluate' sprockets (2.12.3) lib/sprockets/context.rb:194:in `each' sprockets (2.12.3) lib/sprockets/context.rb:194:in `evaluate' sprockets (2.12.3) lib/sprockets/processed_asset.rb:12:in `initialize' sprockets (2.12.3) lib/sprockets/base.rb:374:in `new' sprockets (2.12.3) lib/sprockets/base.rb:374:in `block in build_asset' sprockets (2.12.3) lib/sprockets/base.rb:395:in `circular_call_protection' sprockets (2.12.3) lib/sprockets/base.rb:373:in `build_asset' sprockets (2.12.3) lib/sprockets/index.rb:94:in `block in build_asset' sprockets (2.12.3) lib/sprockets/caching.rb:58:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/processed_asset.rb:44:in `block in init_with' sprockets (2.12.3) lib/sprockets/processed_asset.rb:37:in `map' sprockets (2.12.3) lib/sprockets/processed_asset.rb:37:in `init_with' sprockets (2.12.3) lib/sprockets/asset.rb:24:in `from_hash' sprockets (2.12.3) lib/sprockets/caching.rb:54:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/bundled_asset.rb:37:in `init_with' sprockets (2.12.3) lib/sprockets/asset.rb:24:in `from_hash' sprockets (2.12.3) lib/sprockets/caching.rb:54:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/environment.rb:75:in `find_asset' sprockets (2.12.3) lib/sprockets/base.rb:295:in `[]' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:230:in `lookup_asset_for_path' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:190:in `check_errors_for' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:137:in `block in javascript_include_tag' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:136:in `map' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:136:in `javascript_include_tag' /home/josh/Projects/Dynamo/sprangular/app/views/layouts/sprangular/application.slim:29:in `_65b32affb99967e2be0b18c9b67deff2' actionview (4.1.9) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.9) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.9) lib/action_view/template.rb:339:in `instrument' actionview (4.1.9) lib/action_view/template.rb:143:in `render' deface (1.0.1) lib/deface/action_view_extensions.rb:41:in `render' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:67:in `render_with_layout' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:53:in `render_template' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:17:in `render' actionview (4.1.9) lib/action_view/renderer/renderer.rb:42:in `render_template' actionview (4.1.9) lib/action_view/renderer/renderer.rb:23:in `render' actionview (4.1.9) lib/action_view/rendering.rb:99:in `_render_template' actionpack (4.1.9) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.1.9) lib/action_view/rendering.rb:82:in `render_to_body' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.1.9) lib/action_controller/metal/renderers.rb:32:in `render_to_body' actionpack (4.1.9) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' activesupport (4.1.9) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/benchmark.rb:296:in `realtime' activesupport (4.1.9) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:41:in `block in render' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' activerecord (4.1.9) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:40:in `render' actionpack (4.1.9) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.1.9) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.1.9) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.9) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.9) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:149:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:86:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.9) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.9) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.9) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.9) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.9) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.9) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.9) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.9) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.9) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.9) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.9) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.9) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:82:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:73:in `block in call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `each' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:685:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/railtie.rb:194:in `public_send' railties (4.1.9) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:73:in `block in call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `each' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:685:in `call' warden (1.2.3) lib/warden/manager.rb:35:in `block in call' warden (1.2.3) lib/warden/manager.rb:34:in `catch' warden (1.2.3) lib/warden/manager.rb:34:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/cookies.rb:562:in `call' activerecord (4.1.9) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.9) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' activerecord (4.1.9) lib/active_record/migration.rb:380:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.9) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.9) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.0ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (2.6ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (318.0ms) Started GET "/" for 127.0.0.1 at 2015-02-02 15:46:25 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.6ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6476.9ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7298.0ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (297.1ms) Completed 500 Internal Server Error in 8188ms ActionView::Template::Error (SyntaxError: [stdin]:4:221: unexpected , (in /home/josh/Projects/Dynamo/sprangular/app/assets/javascripts/sprangular/directives/variantSelection.coffee)): 26: 27: ng-include(src="'assets/layout/footer.html'") 28: 29: = javascript_include_tag "application" 30: 31: = yield 32: execjs (2.2.2) lib/execjs/external_runtime.rb:62:in `extract_result' execjs (2.2.2) lib/execjs/external_runtime.rb:29:in `exec' execjs (2.2.2) lib/execjs/external_runtime.rb:18:in `eval' execjs (2.2.2) lib/execjs/external_runtime.rb:36:in `call' coffee-script (2.3.0) lib/coffee_script.rb:76:in `compile' tilt (1.4.1) lib/tilt/coffee.rb:46:in `evaluate' tilt (1.4.1) lib/tilt/template.rb:103:in `render' sprockets (2.12.3) lib/sprockets/context.rb:197:in `block in evaluate' sprockets (2.12.3) lib/sprockets/context.rb:194:in `each' sprockets (2.12.3) lib/sprockets/context.rb:194:in `evaluate' sprockets (2.12.3) lib/sprockets/processed_asset.rb:12:in `initialize' sprockets (2.12.3) lib/sprockets/base.rb:374:in `new' sprockets (2.12.3) lib/sprockets/base.rb:374:in `block in build_asset' sprockets (2.12.3) lib/sprockets/base.rb:395:in `circular_call_protection' sprockets (2.12.3) lib/sprockets/base.rb:373:in `build_asset' sprockets (2.12.3) lib/sprockets/index.rb:94:in `block in build_asset' sprockets (2.12.3) lib/sprockets/caching.rb:58:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/processed_asset.rb:44:in `block in init_with' sprockets (2.12.3) lib/sprockets/processed_asset.rb:37:in `map' sprockets (2.12.3) lib/sprockets/processed_asset.rb:37:in `init_with' sprockets (2.12.3) lib/sprockets/asset.rb:24:in `from_hash' sprockets (2.12.3) lib/sprockets/caching.rb:54:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/bundled_asset.rb:37:in `init_with' sprockets (2.12.3) lib/sprockets/asset.rb:24:in `from_hash' sprockets (2.12.3) lib/sprockets/caching.rb:54:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/environment.rb:75:in `find_asset' sprockets (2.12.3) lib/sprockets/base.rb:295:in `[]' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:230:in `lookup_asset_for_path' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:190:in `check_errors_for' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:137:in `block in javascript_include_tag' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:136:in `map' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:136:in `javascript_include_tag' /home/josh/Projects/Dynamo/sprangular/app/views/layouts/sprangular/application.slim:29:in `_65b32affb99967e2be0b18c9b67deff2' actionview (4.1.9) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.9) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.9) lib/action_view/template.rb:339:in `instrument' actionview (4.1.9) lib/action_view/template.rb:143:in `render' deface (1.0.1) lib/deface/action_view_extensions.rb:41:in `render' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:67:in `render_with_layout' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:53:in `render_template' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:17:in `render' actionview (4.1.9) lib/action_view/renderer/renderer.rb:42:in `render_template' actionview (4.1.9) lib/action_view/renderer/renderer.rb:23:in `render' actionview (4.1.9) lib/action_view/rendering.rb:99:in `_render_template' actionpack (4.1.9) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.1.9) lib/action_view/rendering.rb:82:in `render_to_body' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.1.9) lib/action_controller/metal/renderers.rb:32:in `render_to_body' actionpack (4.1.9) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' activesupport (4.1.9) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/benchmark.rb:296:in `realtime' activesupport (4.1.9) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:41:in `block in render' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' activerecord (4.1.9) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:40:in `render' actionpack (4.1.9) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.1.9) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.1.9) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.9) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.9) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:149:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:86:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.9) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.9) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.9) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.9) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.9) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.9) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.9) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.9) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.9) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.9) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.9) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.9) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:82:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:73:in `block in call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `each' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:685:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/railtie.rb:194:in `public_send' railties (4.1.9) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:73:in `block in call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `each' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:685:in `call' warden (1.2.3) lib/warden/manager.rb:35:in `block in call' warden (1.2.3) lib/warden/manager.rb:34:in `catch' warden (1.2.3) lib/warden/manager.rb:34:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/cookies.rb:562:in `call' activerecord (4.1.9) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.9) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' activerecord (4.1.9) lib/active_record/migration.rb:380:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.9) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.9) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.6ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (2.6ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (185.1ms) Started GET "/" for 127.0.0.1 at 2015-02-02 15:46:46 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6794.3ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7552.5ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (431.7ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.3ms) Completed 200 OK in 11806ms (Views: 11748.0ms | ActiveRecord: 42.0ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-02 15:46:59 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-02 15:46:59 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 15:46:59 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 15:46:59 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-02 15:46:59 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 15:46:59 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 15:46:59 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-02 15:46:59 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-02 15:46:59 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-02 15:46:59 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:00 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:00 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:00 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:00 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:00 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:00 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:00 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:00 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:00 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:00 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:00 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:00 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:00 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:00 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:01 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:01 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:01 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:01 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:01 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:01 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:01 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:01 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:01 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:01 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:01 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:01 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:01 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:01 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:02 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:02 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:02 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:02 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:02 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:02 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:02 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:02 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:02 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:02 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:02 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:02 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:02 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:02 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:02 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:03 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:03 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:03 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:03 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:03 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:03 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:03 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:03 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:03 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:03 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:03 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:03 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:03 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:03 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:03 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:04 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:04 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:04 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:04 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:04 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:04 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:04 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:04 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:04 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:04 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:04 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:05 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-02 15:47:05 -0500 Started GET "/" for 127.0.0.1 at 2015-02-02 15:52:20 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.8ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (1.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (4736.3ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (5283.6ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (432.4ms) Completed 500 Internal Server Error in 6295ms ActionView::Template::Error (SyntaxError: [stdin]:28:22: unexpected / (in /home/josh/Projects/Dynamo/sprangular/app/assets/javascripts/sprangular/directives/dropdown.coffee)): 26: 27: ng-include(src="'assets/layout/footer.html'") 28: 29: = javascript_include_tag "application" 30: 31: = yield 32: execjs (2.2.2) lib/execjs/external_runtime.rb:62:in `extract_result' execjs (2.2.2) lib/execjs/external_runtime.rb:29:in `exec' execjs (2.2.2) lib/execjs/external_runtime.rb:18:in `eval' execjs (2.2.2) lib/execjs/external_runtime.rb:36:in `call' coffee-script (2.3.0) lib/coffee_script.rb:76:in `compile' tilt (1.4.1) lib/tilt/coffee.rb:46:in `evaluate' tilt (1.4.1) lib/tilt/template.rb:103:in `render' sprockets (2.12.3) lib/sprockets/context.rb:197:in `block in evaluate' sprockets (2.12.3) lib/sprockets/context.rb:194:in `each' sprockets (2.12.3) lib/sprockets/context.rb:194:in `evaluate' sprockets (2.12.3) lib/sprockets/processed_asset.rb:12:in `initialize' sprockets (2.12.3) lib/sprockets/base.rb:374:in `new' sprockets (2.12.3) lib/sprockets/base.rb:374:in `block in build_asset' sprockets (2.12.3) lib/sprockets/base.rb:395:in `circular_call_protection' sprockets (2.12.3) lib/sprockets/base.rb:373:in `build_asset' sprockets (2.12.3) lib/sprockets/index.rb:94:in `block in build_asset' sprockets (2.12.3) lib/sprockets/caching.rb:58:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/processed_asset.rb:44:in `block in init_with' sprockets (2.12.3) lib/sprockets/processed_asset.rb:37:in `map' sprockets (2.12.3) lib/sprockets/processed_asset.rb:37:in `init_with' sprockets (2.12.3) lib/sprockets/asset.rb:24:in `from_hash' sprockets (2.12.3) lib/sprockets/caching.rb:54:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/bundled_asset.rb:37:in `init_with' sprockets (2.12.3) lib/sprockets/asset.rb:24:in `from_hash' sprockets (2.12.3) lib/sprockets/caching.rb:54:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/environment.rb:75:in `find_asset' sprockets (2.12.3) lib/sprockets/base.rb:295:in `[]' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:230:in `lookup_asset_for_path' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:190:in `check_errors_for' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:137:in `block in javascript_include_tag' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:136:in `map' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:136:in `javascript_include_tag' /home/josh/Projects/Dynamo/sprangular/app/views/layouts/sprangular/application.slim:29:in `_65b32affb99967e2be0b18c9b67deff2' actionview (4.1.9) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.9) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.9) lib/action_view/template.rb:339:in `instrument' actionview (4.1.9) lib/action_view/template.rb:143:in `render' deface (1.0.1) lib/deface/action_view_extensions.rb:41:in `render' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:67:in `render_with_layout' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:53:in `render_template' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:17:in `render' actionview (4.1.9) lib/action_view/renderer/renderer.rb:42:in `render_template' actionview (4.1.9) lib/action_view/renderer/renderer.rb:23:in `render' actionview (4.1.9) lib/action_view/rendering.rb:99:in `_render_template' actionpack (4.1.9) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.1.9) lib/action_view/rendering.rb:82:in `render_to_body' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.1.9) lib/action_controller/metal/renderers.rb:32:in `render_to_body' actionpack (4.1.9) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' activesupport (4.1.9) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/benchmark.rb:296:in `realtime' activesupport (4.1.9) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:41:in `block in render' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' activerecord (4.1.9) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:40:in `render' actionpack (4.1.9) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.1.9) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.1.9) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.9) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.9) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:149:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:86:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.9) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.9) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.9) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.9) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.9) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.9) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.9) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.9) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.9) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.9) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.9) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.9) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:82:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:73:in `block in call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `each' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:685:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/railtie.rb:194:in `public_send' railties (4.1.9) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:73:in `block in call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `each' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:685:in `call' warden (1.2.3) lib/warden/manager.rb:35:in `block in call' warden (1.2.3) lib/warden/manager.rb:34:in `catch' warden (1.2.3) lib/warden/manager.rb:34:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/cookies.rb:562:in `call' activerecord (4.1.9) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.9) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' activerecord (4.1.9) lib/active_record/migration.rb:380:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.9) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.9) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.5ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (4.6ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (230.5ms) Started GET "/" for 127.0.0.1 at 2015-02-02 15:53:47 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.1ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (4390.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (4893.3ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (290.4ms) Completed 500 Internal Server Error in 5769ms ActionView::Template::Error (SyntaxError: [stdin]:28:23: unexpected / (in /home/josh/Projects/Dynamo/sprangular/app/assets/javascripts/sprangular/directives/dropdown.coffee)): 26: 27: ng-include(src="'assets/layout/footer.html'") 28: 29: = javascript_include_tag "application" 30: 31: = yield 32: execjs (2.2.2) lib/execjs/external_runtime.rb:62:in `extract_result' execjs (2.2.2) lib/execjs/external_runtime.rb:29:in `exec' execjs (2.2.2) lib/execjs/external_runtime.rb:18:in `eval' execjs (2.2.2) lib/execjs/external_runtime.rb:36:in `call' coffee-script (2.3.0) lib/coffee_script.rb:76:in `compile' tilt (1.4.1) lib/tilt/coffee.rb:46:in `evaluate' tilt (1.4.1) lib/tilt/template.rb:103:in `render' sprockets (2.12.3) lib/sprockets/context.rb:197:in `block in evaluate' sprockets (2.12.3) lib/sprockets/context.rb:194:in `each' sprockets (2.12.3) lib/sprockets/context.rb:194:in `evaluate' sprockets (2.12.3) lib/sprockets/processed_asset.rb:12:in `initialize' sprockets (2.12.3) lib/sprockets/base.rb:374:in `new' sprockets (2.12.3) lib/sprockets/base.rb:374:in `block in build_asset' sprockets (2.12.3) lib/sprockets/base.rb:395:in `circular_call_protection' sprockets (2.12.3) lib/sprockets/base.rb:373:in `build_asset' sprockets (2.12.3) lib/sprockets/index.rb:94:in `block in build_asset' sprockets (2.12.3) lib/sprockets/caching.rb:58:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/processed_asset.rb:44:in `block in init_with' sprockets (2.12.3) lib/sprockets/processed_asset.rb:37:in `map' sprockets (2.12.3) lib/sprockets/processed_asset.rb:37:in `init_with' sprockets (2.12.3) lib/sprockets/asset.rb:24:in `from_hash' sprockets (2.12.3) lib/sprockets/caching.rb:54:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/bundled_asset.rb:37:in `init_with' sprockets (2.12.3) lib/sprockets/asset.rb:24:in `from_hash' sprockets (2.12.3) lib/sprockets/caching.rb:54:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/environment.rb:75:in `find_asset' sprockets (2.12.3) lib/sprockets/base.rb:295:in `[]' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:230:in `lookup_asset_for_path' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:190:in `check_errors_for' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:137:in `block in javascript_include_tag' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:136:in `map' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:136:in `javascript_include_tag' /home/josh/Projects/Dynamo/sprangular/app/views/layouts/sprangular/application.slim:29:in `_65b32affb99967e2be0b18c9b67deff2' actionview (4.1.9) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.9) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.9) lib/action_view/template.rb:339:in `instrument' actionview (4.1.9) lib/action_view/template.rb:143:in `render' deface (1.0.1) lib/deface/action_view_extensions.rb:41:in `render' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:67:in `render_with_layout' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:53:in `render_template' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:17:in `render' actionview (4.1.9) lib/action_view/renderer/renderer.rb:42:in `render_template' actionview (4.1.9) lib/action_view/renderer/renderer.rb:23:in `render' actionview (4.1.9) lib/action_view/rendering.rb:99:in `_render_template' actionpack (4.1.9) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.1.9) lib/action_view/rendering.rb:82:in `render_to_body' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.1.9) lib/action_controller/metal/renderers.rb:32:in `render_to_body' actionpack (4.1.9) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' activesupport (4.1.9) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/benchmark.rb:296:in `realtime' activesupport (4.1.9) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:41:in `block in render' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' activerecord (4.1.9) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:40:in `render' actionpack (4.1.9) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.1.9) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.1.9) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.9) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.9) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:149:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:86:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.9) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.9) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.9) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.9) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.9) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.9) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.9) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.9) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.9) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.9) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.9) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.9) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:82:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:73:in `block in call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `each' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:685:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/railtie.rb:194:in `public_send' railties (4.1.9) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:73:in `block in call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `each' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:685:in `call' warden (1.2.3) lib/warden/manager.rb:35:in `block in call' warden (1.2.3) lib/warden/manager.rb:34:in `catch' warden (1.2.3) lib/warden/manager.rb:34:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/cookies.rb:562:in `call' activerecord (4.1.9) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.9) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' activerecord (4.1.9) lib/active_record/migration.rb:380:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.9) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.9) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.7ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (2.6ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (181.0ms) Started GET "/" for 127.0.0.1 at 2015-02-02 15:56:11 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.1ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (4201.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (4713.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (272.8ms) Completed 500 Internal Server Error in 5378ms ActionView::Template::Error (SyntaxError: [stdin]:25:22: unexpected / (in /home/josh/Projects/Dynamo/sprangular/app/assets/javascripts/sprangular/directives/dropdown.coffee)): 26: 27: ng-include(src="'assets/layout/footer.html'") 28: 29: = javascript_include_tag "application" 30: 31: = yield 32: execjs (2.2.2) lib/execjs/external_runtime.rb:62:in `extract_result' execjs (2.2.2) lib/execjs/external_runtime.rb:29:in `exec' execjs (2.2.2) lib/execjs/external_runtime.rb:18:in `eval' execjs (2.2.2) lib/execjs/external_runtime.rb:36:in `call' coffee-script (2.3.0) lib/coffee_script.rb:76:in `compile' tilt (1.4.1) lib/tilt/coffee.rb:46:in `evaluate' tilt (1.4.1) lib/tilt/template.rb:103:in `render' sprockets (2.12.3) lib/sprockets/context.rb:197:in `block in evaluate' sprockets (2.12.3) lib/sprockets/context.rb:194:in `each' sprockets (2.12.3) lib/sprockets/context.rb:194:in `evaluate' sprockets (2.12.3) lib/sprockets/processed_asset.rb:12:in `initialize' sprockets (2.12.3) lib/sprockets/base.rb:374:in `new' sprockets (2.12.3) lib/sprockets/base.rb:374:in `block in build_asset' sprockets (2.12.3) lib/sprockets/base.rb:395:in `circular_call_protection' sprockets (2.12.3) lib/sprockets/base.rb:373:in `build_asset' sprockets (2.12.3) lib/sprockets/index.rb:94:in `block in build_asset' sprockets (2.12.3) lib/sprockets/caching.rb:58:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/processed_asset.rb:44:in `block in init_with' sprockets (2.12.3) lib/sprockets/processed_asset.rb:37:in `map' sprockets (2.12.3) lib/sprockets/processed_asset.rb:37:in `init_with' sprockets (2.12.3) lib/sprockets/asset.rb:24:in `from_hash' sprockets (2.12.3) lib/sprockets/caching.rb:54:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/bundled_asset.rb:37:in `init_with' sprockets (2.12.3) lib/sprockets/asset.rb:24:in `from_hash' sprockets (2.12.3) lib/sprockets/caching.rb:54:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/environment.rb:75:in `find_asset' sprockets (2.12.3) lib/sprockets/base.rb:295:in `[]' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:230:in `lookup_asset_for_path' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:190:in `check_errors_for' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:137:in `block in javascript_include_tag' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:136:in `map' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:136:in `javascript_include_tag' /home/josh/Projects/Dynamo/sprangular/app/views/layouts/sprangular/application.slim:29:in `_65b32affb99967e2be0b18c9b67deff2' actionview (4.1.9) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.9) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.9) lib/action_view/template.rb:339:in `instrument' actionview (4.1.9) lib/action_view/template.rb:143:in `render' deface (1.0.1) lib/deface/action_view_extensions.rb:41:in `render' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:67:in `render_with_layout' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:53:in `render_template' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:17:in `render' actionview (4.1.9) lib/action_view/renderer/renderer.rb:42:in `render_template' actionview (4.1.9) lib/action_view/renderer/renderer.rb:23:in `render' actionview (4.1.9) lib/action_view/rendering.rb:99:in `_render_template' actionpack (4.1.9) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.1.9) lib/action_view/rendering.rb:82:in `render_to_body' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.1.9) lib/action_controller/metal/renderers.rb:32:in `render_to_body' actionpack (4.1.9) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' activesupport (4.1.9) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/benchmark.rb:296:in `realtime' activesupport (4.1.9) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:41:in `block in render' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' activerecord (4.1.9) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:40:in `render' actionpack (4.1.9) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.1.9) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.1.9) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.9) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.9) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:149:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:86:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.9) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.9) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.9) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.9) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.9) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.9) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.9) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.9) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.9) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.9) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.9) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.9) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:82:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:73:in `block in call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `each' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:685:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/railtie.rb:194:in `public_send' railties (4.1.9) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:73:in `block in call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `each' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:685:in `call' warden (1.2.3) lib/warden/manager.rb:35:in `block in call' warden (1.2.3) lib/warden/manager.rb:34:in `catch' warden (1.2.3) lib/warden/manager.rb:34:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/cookies.rb:562:in `call' activerecord (4.1.9) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.9) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' activerecord (4.1.9) lib/active_record/migration.rb:380:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.9) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.9) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.5ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.6ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (116.4ms) Started GET "/" for 127.0.0.1 at 2015-02-02 15:56:41 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (4330.2ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (4848.6ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (213.0ms) Completed 500 Internal Server Error in 5467ms ActionView::Template::Error (SyntaxError: [stdin]:25:23: unexpected / (in /home/josh/Projects/Dynamo/sprangular/app/assets/javascripts/sprangular/directives/dropdown.coffee)): 26: 27: ng-include(src="'assets/layout/footer.html'") 28: 29: = javascript_include_tag "application" 30: 31: = yield 32: execjs (2.2.2) lib/execjs/external_runtime.rb:62:in `extract_result' execjs (2.2.2) lib/execjs/external_runtime.rb:29:in `exec' execjs (2.2.2) lib/execjs/external_runtime.rb:18:in `eval' execjs (2.2.2) lib/execjs/external_runtime.rb:36:in `call' coffee-script (2.3.0) lib/coffee_script.rb:76:in `compile' tilt (1.4.1) lib/tilt/coffee.rb:46:in `evaluate' tilt (1.4.1) lib/tilt/template.rb:103:in `render' sprockets (2.12.3) lib/sprockets/context.rb:197:in `block in evaluate' sprockets (2.12.3) lib/sprockets/context.rb:194:in `each' sprockets (2.12.3) lib/sprockets/context.rb:194:in `evaluate' sprockets (2.12.3) lib/sprockets/processed_asset.rb:12:in `initialize' sprockets (2.12.3) lib/sprockets/base.rb:374:in `new' sprockets (2.12.3) lib/sprockets/base.rb:374:in `block in build_asset' sprockets (2.12.3) lib/sprockets/base.rb:395:in `circular_call_protection' sprockets (2.12.3) lib/sprockets/base.rb:373:in `build_asset' sprockets (2.12.3) lib/sprockets/index.rb:94:in `block in build_asset' sprockets (2.12.3) lib/sprockets/caching.rb:58:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/processed_asset.rb:44:in `block in init_with' sprockets (2.12.3) lib/sprockets/processed_asset.rb:37:in `map' sprockets (2.12.3) lib/sprockets/processed_asset.rb:37:in `init_with' sprockets (2.12.3) lib/sprockets/asset.rb:24:in `from_hash' sprockets (2.12.3) lib/sprockets/caching.rb:54:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/bundled_asset.rb:37:in `init_with' sprockets (2.12.3) lib/sprockets/asset.rb:24:in `from_hash' sprockets (2.12.3) lib/sprockets/caching.rb:54:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/environment.rb:75:in `find_asset' sprockets (2.12.3) lib/sprockets/base.rb:295:in `[]' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:230:in `lookup_asset_for_path' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:190:in `check_errors_for' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:137:in `block in javascript_include_tag' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:136:in `map' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:136:in `javascript_include_tag' /home/josh/Projects/Dynamo/sprangular/app/views/layouts/sprangular/application.slim:29:in `_65b32affb99967e2be0b18c9b67deff2' actionview (4.1.9) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.9) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.9) lib/action_view/template.rb:339:in `instrument' actionview (4.1.9) lib/action_view/template.rb:143:in `render' deface (1.0.1) lib/deface/action_view_extensions.rb:41:in `render' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:67:in `render_with_layout' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:53:in `render_template' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:17:in `render' actionview (4.1.9) lib/action_view/renderer/renderer.rb:42:in `render_template' actionview (4.1.9) lib/action_view/renderer/renderer.rb:23:in `render' actionview (4.1.9) lib/action_view/rendering.rb:99:in `_render_template' actionpack (4.1.9) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.1.9) lib/action_view/rendering.rb:82:in `render_to_body' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.1.9) lib/action_controller/metal/renderers.rb:32:in `render_to_body' actionpack (4.1.9) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' activesupport (4.1.9) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/benchmark.rb:296:in `realtime' activesupport (4.1.9) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:41:in `block in render' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' activerecord (4.1.9) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:40:in `render' actionpack (4.1.9) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.1.9) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.1.9) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.9) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.9) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:149:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:86:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.9) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.9) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.9) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.9) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.9) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.9) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.9) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.9) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.9) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.9) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.9) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.9) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:82:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:73:in `block in call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `each' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:685:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/railtie.rb:194:in `public_send' railties (4.1.9) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:73:in `block in call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `each' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:685:in `call' warden (1.2.3) lib/warden/manager.rb:35:in `block in call' warden (1.2.3) lib/warden/manager.rb:34:in `catch' warden (1.2.3) lib/warden/manager.rb:34:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/cookies.rb:562:in `call' activerecord (4.1.9) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.9) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' activerecord (4.1.9) lib/active_record/migration.rb:380:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.9) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.9) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.6ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.9ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (119.8ms) Started GET "/" for 127.0.0.1 at 2015-02-02 15:57:38 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.1ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (4687.0ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (5257.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (425.5ms) Completed 500 Internal Server Error in 6280ms ActionView::Template::Error (SyntaxError: [stdin]:25:23: unexpected / (in /home/josh/Projects/Dynamo/sprangular/app/assets/javascripts/sprangular/directives/dropdown.coffee)): 26: 27: ng-include(src="'assets/layout/footer.html'") 28: 29: = javascript_include_tag "application" 30: 31: = yield 32: execjs (2.2.2) lib/execjs/external_runtime.rb:62:in `extract_result' execjs (2.2.2) lib/execjs/external_runtime.rb:29:in `exec' execjs (2.2.2) lib/execjs/external_runtime.rb:18:in `eval' execjs (2.2.2) lib/execjs/external_runtime.rb:36:in `call' coffee-script (2.3.0) lib/coffee_script.rb:76:in `compile' tilt (1.4.1) lib/tilt/coffee.rb:46:in `evaluate' tilt (1.4.1) lib/tilt/template.rb:103:in `render' sprockets (2.12.3) lib/sprockets/context.rb:197:in `block in evaluate' sprockets (2.12.3) lib/sprockets/context.rb:194:in `each' sprockets (2.12.3) lib/sprockets/context.rb:194:in `evaluate' sprockets (2.12.3) lib/sprockets/processed_asset.rb:12:in `initialize' sprockets (2.12.3) lib/sprockets/base.rb:374:in `new' sprockets (2.12.3) lib/sprockets/base.rb:374:in `block in build_asset' sprockets (2.12.3) lib/sprockets/base.rb:395:in `circular_call_protection' sprockets (2.12.3) lib/sprockets/base.rb:373:in `build_asset' sprockets (2.12.3) lib/sprockets/index.rb:94:in `block in build_asset' sprockets (2.12.3) lib/sprockets/caching.rb:58:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/processed_asset.rb:44:in `block in init_with' sprockets (2.12.3) lib/sprockets/processed_asset.rb:37:in `map' sprockets (2.12.3) lib/sprockets/processed_asset.rb:37:in `init_with' sprockets (2.12.3) lib/sprockets/asset.rb:24:in `from_hash' sprockets (2.12.3) lib/sprockets/caching.rb:54:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/bundled_asset.rb:37:in `init_with' sprockets (2.12.3) lib/sprockets/asset.rb:24:in `from_hash' sprockets (2.12.3) lib/sprockets/caching.rb:54:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/environment.rb:75:in `find_asset' sprockets (2.12.3) lib/sprockets/base.rb:295:in `[]' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:230:in `lookup_asset_for_path' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:190:in `check_errors_for' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:137:in `block in javascript_include_tag' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:136:in `map' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:136:in `javascript_include_tag' /home/josh/Projects/Dynamo/sprangular/app/views/layouts/sprangular/application.slim:29:in `_65b32affb99967e2be0b18c9b67deff2' actionview (4.1.9) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.9) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.9) lib/action_view/template.rb:339:in `instrument' actionview (4.1.9) lib/action_view/template.rb:143:in `render' deface (1.0.1) lib/deface/action_view_extensions.rb:41:in `render' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:67:in `render_with_layout' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:53:in `render_template' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:17:in `render' actionview (4.1.9) lib/action_view/renderer/renderer.rb:42:in `render_template' actionview (4.1.9) lib/action_view/renderer/renderer.rb:23:in `render' actionview (4.1.9) lib/action_view/rendering.rb:99:in `_render_template' actionpack (4.1.9) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.1.9) lib/action_view/rendering.rb:82:in `render_to_body' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.1.9) lib/action_controller/metal/renderers.rb:32:in `render_to_body' actionpack (4.1.9) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' activesupport (4.1.9) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/benchmark.rb:296:in `realtime' activesupport (4.1.9) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:41:in `block in render' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' activerecord (4.1.9) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:40:in `render' actionpack (4.1.9) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.1.9) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.1.9) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.9) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.9) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:149:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:86:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.9) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.9) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.9) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.9) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.9) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.9) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.9) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.9) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.9) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.9) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.9) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.9) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:82:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:73:in `block in call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `each' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:685:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/railtie.rb:194:in `public_send' railties (4.1.9) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:73:in `block in call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `each' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:685:in `call' warden (1.2.3) lib/warden/manager.rb:35:in `block in call' warden (1.2.3) lib/warden/manager.rb:34:in `catch' warden (1.2.3) lib/warden/manager.rb:34:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/cookies.rb:562:in `call' activerecord (4.1.9) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.9) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' activerecord (4.1.9) lib/active_record/migration.rb:380:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.9) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.9) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.6ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (2.4ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (189.2ms) Started GET "/" for 127.0.0.1 at 2015-02-02 15:59:53 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.1ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (4301.1ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (4802.6ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (194.6ms) Spree::Tracker Load (0.3ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.0ms) Completed 200 OK in 8260ms (Views: 8222.0ms | ActiveRecord: 29.0ms) Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-02 16:00:02 -0500 Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-02 16:00:02 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:02 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:02 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:02 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:02 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:02 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:02 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:03 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:03 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:03 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:03 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:03 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:03 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:03 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:03 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:03 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:03 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:03 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:03 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:03 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:03 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:03 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:03 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:03 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:03 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:03 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:03 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:04 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:04 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:04 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:04 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:04 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:04 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:04 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:04 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:04 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:04 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:04 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:04 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:04 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:04 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:04 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:04 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:04 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:04 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:04 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:04 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:05 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:05 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:05 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:05 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:05 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:05 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:05 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:05 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:05 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:05 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:05 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:05 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:05 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:05 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:05 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:05 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:05 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:05 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:06 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:06 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:06 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:06 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:06 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:06 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:06 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:06 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:06 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:06 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:06 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:06 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:06 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:06 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-02 16:00:06 -0500 Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-02 16:00:28 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-02 16:00:28 -0500 Started GET "/" for 127.0.0.1 at 2015-02-02 16:01:51 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.1ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (4692.8ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (5182.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (279.3ms) Completed 500 Internal Server Error in 6024ms ActionView::Template::Error (SyntaxError: [stdin]:25:23: unexpected / (in /home/josh/Projects/Dynamo/sprangular/app/assets/javascripts/sprangular/directives/dropdown.coffee)): 26: 27: ng-include(src="'assets/layout/footer.html'") 28: 29: = javascript_include_tag "application" 30: 31: = yield 32: execjs (2.2.2) lib/execjs/external_runtime.rb:62:in `extract_result' execjs (2.2.2) lib/execjs/external_runtime.rb:29:in `exec' execjs (2.2.2) lib/execjs/external_runtime.rb:18:in `eval' execjs (2.2.2) lib/execjs/external_runtime.rb:36:in `call' coffee-script (2.3.0) lib/coffee_script.rb:76:in `compile' tilt (1.4.1) lib/tilt/coffee.rb:46:in `evaluate' tilt (1.4.1) lib/tilt/template.rb:103:in `render' sprockets (2.12.3) lib/sprockets/context.rb:197:in `block in evaluate' sprockets (2.12.3) lib/sprockets/context.rb:194:in `each' sprockets (2.12.3) lib/sprockets/context.rb:194:in `evaluate' sprockets (2.12.3) lib/sprockets/processed_asset.rb:12:in `initialize' sprockets (2.12.3) lib/sprockets/base.rb:374:in `new' sprockets (2.12.3) lib/sprockets/base.rb:374:in `block in build_asset' sprockets (2.12.3) lib/sprockets/base.rb:395:in `circular_call_protection' sprockets (2.12.3) lib/sprockets/base.rb:373:in `build_asset' sprockets (2.12.3) lib/sprockets/index.rb:94:in `block in build_asset' sprockets (2.12.3) lib/sprockets/caching.rb:58:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/processed_asset.rb:44:in `block in init_with' sprockets (2.12.3) lib/sprockets/processed_asset.rb:37:in `map' sprockets (2.12.3) lib/sprockets/processed_asset.rb:37:in `init_with' sprockets (2.12.3) lib/sprockets/asset.rb:24:in `from_hash' sprockets (2.12.3) lib/sprockets/caching.rb:54:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/bundled_asset.rb:37:in `init_with' sprockets (2.12.3) lib/sprockets/asset.rb:24:in `from_hash' sprockets (2.12.3) lib/sprockets/caching.rb:54:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/environment.rb:75:in `find_asset' sprockets (2.12.3) lib/sprockets/base.rb:295:in `[]' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:230:in `lookup_asset_for_path' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:190:in `check_errors_for' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:137:in `block in javascript_include_tag' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:136:in `map' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:136:in `javascript_include_tag' /home/josh/Projects/Dynamo/sprangular/app/views/layouts/sprangular/application.slim:29:in `_65b32affb99967e2be0b18c9b67deff2' actionview (4.1.9) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.9) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.9) lib/action_view/template.rb:339:in `instrument' actionview (4.1.9) lib/action_view/template.rb:143:in `render' deface (1.0.1) lib/deface/action_view_extensions.rb:41:in `render' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:67:in `render_with_layout' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:53:in `render_template' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:17:in `render' actionview (4.1.9) lib/action_view/renderer/renderer.rb:42:in `render_template' actionview (4.1.9) lib/action_view/renderer/renderer.rb:23:in `render' actionview (4.1.9) lib/action_view/rendering.rb:99:in `_render_template' actionpack (4.1.9) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.1.9) lib/action_view/rendering.rb:82:in `render_to_body' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.1.9) lib/action_controller/metal/renderers.rb:32:in `render_to_body' actionpack (4.1.9) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' activesupport (4.1.9) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/benchmark.rb:296:in `realtime' activesupport (4.1.9) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:41:in `block in render' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' activerecord (4.1.9) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:40:in `render' actionpack (4.1.9) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.1.9) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.1.9) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.9) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.9) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:149:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:86:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.9) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.9) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.9) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.9) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.9) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.9) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.9) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.9) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.9) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.9) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.9) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.9) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:82:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:73:in `block in call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `each' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:685:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/railtie.rb:194:in `public_send' railties (4.1.9) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:73:in `block in call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `each' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:685:in `call' warden (1.2.3) lib/warden/manager.rb:35:in `block in call' warden (1.2.3) lib/warden/manager.rb:34:in `catch' warden (1.2.3) lib/warden/manager.rb:34:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/cookies.rb:562:in `call' activerecord (4.1.9) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.9) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' activerecord (4.1.9) lib/active_record/migration.rb:380:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.9) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.9) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.5ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (2.6ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (190.7ms) Started GET "/" for 127.0.0.1 at 2015-02-02 16:01:57 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.5ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6481.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7251.9ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (427.5ms) Completed 500 Internal Server Error in 8293ms ActionView::Template::Error (SyntaxError: [stdin]:25:23: unexpected / (in /home/josh/Projects/Dynamo/sprangular/app/assets/javascripts/sprangular/directives/dropdown.coffee)): 26: 27: ng-include(src="'assets/layout/footer.html'") 28: 29: = javascript_include_tag "application" 30: 31: = yield 32: execjs (2.2.2) lib/execjs/external_runtime.rb:62:in `extract_result' execjs (2.2.2) lib/execjs/external_runtime.rb:29:in `exec' execjs (2.2.2) lib/execjs/external_runtime.rb:18:in `eval' execjs (2.2.2) lib/execjs/external_runtime.rb:36:in `call' coffee-script (2.3.0) lib/coffee_script.rb:76:in `compile' tilt (1.4.1) lib/tilt/coffee.rb:46:in `evaluate' tilt (1.4.1) lib/tilt/template.rb:103:in `render' sprockets (2.12.3) lib/sprockets/context.rb:197:in `block in evaluate' sprockets (2.12.3) lib/sprockets/context.rb:194:in `each' sprockets (2.12.3) lib/sprockets/context.rb:194:in `evaluate' sprockets (2.12.3) lib/sprockets/processed_asset.rb:12:in `initialize' sprockets (2.12.3) lib/sprockets/base.rb:374:in `new' sprockets (2.12.3) lib/sprockets/base.rb:374:in `block in build_asset' sprockets (2.12.3) lib/sprockets/base.rb:395:in `circular_call_protection' sprockets (2.12.3) lib/sprockets/base.rb:373:in `build_asset' sprockets (2.12.3) lib/sprockets/index.rb:94:in `block in build_asset' sprockets (2.12.3) lib/sprockets/caching.rb:58:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/processed_asset.rb:44:in `block in init_with' sprockets (2.12.3) lib/sprockets/processed_asset.rb:37:in `map' sprockets (2.12.3) lib/sprockets/processed_asset.rb:37:in `init_with' sprockets (2.12.3) lib/sprockets/asset.rb:24:in `from_hash' sprockets (2.12.3) lib/sprockets/caching.rb:54:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/bundled_asset.rb:37:in `init_with' sprockets (2.12.3) lib/sprockets/asset.rb:24:in `from_hash' sprockets (2.12.3) lib/sprockets/caching.rb:54:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/environment.rb:75:in `find_asset' sprockets (2.12.3) lib/sprockets/base.rb:295:in `[]' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:230:in `lookup_asset_for_path' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:190:in `check_errors_for' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:137:in `block in javascript_include_tag' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:136:in `map' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:136:in `javascript_include_tag' /home/josh/Projects/Dynamo/sprangular/app/views/layouts/sprangular/application.slim:29:in `_65b32affb99967e2be0b18c9b67deff2' actionview (4.1.9) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.9) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.9) lib/action_view/template.rb:339:in `instrument' actionview (4.1.9) lib/action_view/template.rb:143:in `render' deface (1.0.1) lib/deface/action_view_extensions.rb:41:in `render' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:67:in `render_with_layout' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:53:in `render_template' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:17:in `render' actionview (4.1.9) lib/action_view/renderer/renderer.rb:42:in `render_template' actionview (4.1.9) lib/action_view/renderer/renderer.rb:23:in `render' actionview (4.1.9) lib/action_view/rendering.rb:99:in `_render_template' actionpack (4.1.9) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.1.9) lib/action_view/rendering.rb:82:in `render_to_body' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.1.9) lib/action_controller/metal/renderers.rb:32:in `render_to_body' actionpack (4.1.9) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' activesupport (4.1.9) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/benchmark.rb:296:in `realtime' activesupport (4.1.9) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:41:in `block in render' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' activerecord (4.1.9) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:40:in `render' actionpack (4.1.9) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.1.9) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.1.9) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.9) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.9) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:149:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:86:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.9) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.9) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.9) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.9) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.9) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.9) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.9) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.9) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.9) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.9) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.9) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.9) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:82:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:73:in `block in call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `each' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:685:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/railtie.rb:194:in `public_send' railties (4.1.9) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:73:in `block in call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `each' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:685:in `call' warden (1.2.3) lib/warden/manager.rb:35:in `block in call' warden (1.2.3) lib/warden/manager.rb:34:in `catch' warden (1.2.3) lib/warden/manager.rb:34:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/cookies.rb:562:in `call' activerecord (4.1.9) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.9) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' activerecord (4.1.9) lib/active_record/migration.rb:380:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.9) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.9) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.4ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (2.5ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (179.4ms) Started GET "/" for 127.0.0.1 at 2015-02-02 16:02:14 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6538.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7311.8ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (293.9ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.0ms) Completed 200 OK in 11508ms (Views: 11453.9ms | ActiveRecord: 39.9ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-02 16:02:26 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-02 16:02:26 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:26 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:27 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:27 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:27 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:27 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:27 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:27 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:27 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:27 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:27 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:27 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:27 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:27 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:27 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:28 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:28 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:28 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:28 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:28 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:28 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:28 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:28 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:28 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:28 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:28 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:28 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:28 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:28 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:29 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:29 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:29 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:29 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:29 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:29 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:29 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:29 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:29 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:29 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:29 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:29 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:29 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:29 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:29 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:30 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:30 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:30 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:30 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:30 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:30 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:30 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:30 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:30 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:30 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:30 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:30 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:30 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:30 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:30 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:30 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:31 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:31 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:31 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:31 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:31 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:31 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:31 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:31 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:31 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:31 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:31 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:31 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:31 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:31 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:32 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:32 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:32 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:32 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:32 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:32 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:33 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:33 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:33 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:33 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:33 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:33 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:33 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:33 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:34 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:34 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:34 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:34 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:34 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:34 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:34 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:34 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:34 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:34 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-02 16:02:34 -0500 Started GET "/" for 127.0.0.1 at 2015-02-02 16:03:47 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (4139.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (4628.8ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (264.7ms) Completed 500 Internal Server Error in 5291ms ActionView::Template::Error (SyntaxError: [stdin]:26:48: unexpected : (in /home/josh/Projects/Dynamo/sprangular/app/assets/javascripts/sprangular/directives/dropdown.coffee)): 26: 27: ng-include(src="'assets/layout/footer.html'") 28: 29: = javascript_include_tag "application" 30: 31: = yield 32: execjs (2.2.2) lib/execjs/external_runtime.rb:62:in `extract_result' execjs (2.2.2) lib/execjs/external_runtime.rb:29:in `exec' execjs (2.2.2) lib/execjs/external_runtime.rb:18:in `eval' execjs (2.2.2) lib/execjs/external_runtime.rb:36:in `call' coffee-script (2.3.0) lib/coffee_script.rb:76:in `compile' tilt (1.4.1) lib/tilt/coffee.rb:46:in `evaluate' tilt (1.4.1) lib/tilt/template.rb:103:in `render' sprockets (2.12.3) lib/sprockets/context.rb:197:in `block in evaluate' sprockets (2.12.3) lib/sprockets/context.rb:194:in `each' sprockets (2.12.3) lib/sprockets/context.rb:194:in `evaluate' sprockets (2.12.3) lib/sprockets/processed_asset.rb:12:in `initialize' sprockets (2.12.3) lib/sprockets/base.rb:374:in `new' sprockets (2.12.3) lib/sprockets/base.rb:374:in `block in build_asset' sprockets (2.12.3) lib/sprockets/base.rb:395:in `circular_call_protection' sprockets (2.12.3) lib/sprockets/base.rb:373:in `build_asset' sprockets (2.12.3) lib/sprockets/index.rb:94:in `block in build_asset' sprockets (2.12.3) lib/sprockets/caching.rb:58:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/processed_asset.rb:44:in `block in init_with' sprockets (2.12.3) lib/sprockets/processed_asset.rb:37:in `map' sprockets (2.12.3) lib/sprockets/processed_asset.rb:37:in `init_with' sprockets (2.12.3) lib/sprockets/asset.rb:24:in `from_hash' sprockets (2.12.3) lib/sprockets/caching.rb:54:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/bundled_asset.rb:37:in `init_with' sprockets (2.12.3) lib/sprockets/asset.rb:24:in `from_hash' sprockets (2.12.3) lib/sprockets/caching.rb:54:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/environment.rb:75:in `find_asset' sprockets (2.12.3) lib/sprockets/base.rb:295:in `[]' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:230:in `lookup_asset_for_path' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:190:in `check_errors_for' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:137:in `block in javascript_include_tag' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:136:in `map' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:136:in `javascript_include_tag' /home/josh/Projects/Dynamo/sprangular/app/views/layouts/sprangular/application.slim:29:in `_65b32affb99967e2be0b18c9b67deff2' actionview (4.1.9) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.9) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.9) lib/action_view/template.rb:339:in `instrument' actionview (4.1.9) lib/action_view/template.rb:143:in `render' deface (1.0.1) lib/deface/action_view_extensions.rb:41:in `render' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:67:in `render_with_layout' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:53:in `render_template' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:17:in `render' actionview (4.1.9) lib/action_view/renderer/renderer.rb:42:in `render_template' actionview (4.1.9) lib/action_view/renderer/renderer.rb:23:in `render' actionview (4.1.9) lib/action_view/rendering.rb:99:in `_render_template' actionpack (4.1.9) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.1.9) lib/action_view/rendering.rb:82:in `render_to_body' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.1.9) lib/action_controller/metal/renderers.rb:32:in `render_to_body' actionpack (4.1.9) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' activesupport (4.1.9) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/benchmark.rb:296:in `realtime' activesupport (4.1.9) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:41:in `block in render' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' activerecord (4.1.9) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:40:in `render' actionpack (4.1.9) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.1.9) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.1.9) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.9) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.9) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:149:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:86:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.9) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.9) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.9) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.9) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.9) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.9) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.9) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.9) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.9) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.9) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.9) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.9) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:82:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:73:in `block in call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `each' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:685:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/railtie.rb:194:in `public_send' railties (4.1.9) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:73:in `block in call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `each' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:685:in `call' warden (1.2.3) lib/warden/manager.rb:35:in `block in call' warden (1.2.3) lib/warden/manager.rb:34:in `catch' warden (1.2.3) lib/warden/manager.rb:34:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/cookies.rb:562:in `call' activerecord (4.1.9) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.9) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' activerecord (4.1.9) lib/active_record/migration.rb:380:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.9) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.9) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (4.4ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (120.4ms) Started GET "/" for 127.0.0.1 at 2015-02-02 16:05:12 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (4035.8ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (4524.9ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (186.2ms) Completed 500 Internal Server Error in 5174ms ActionView::Template::Error (SyntaxError: [stdin]:25:22: unexpected / (in /home/josh/Projects/Dynamo/sprangular/app/assets/javascripts/sprangular/directives/dropdown.coffee)): 26: 27: ng-include(src="'assets/layout/footer.html'") 28: 29: = javascript_include_tag "application" 30: 31: = yield 32: execjs (2.2.2) lib/execjs/external_runtime.rb:62:in `extract_result' execjs (2.2.2) lib/execjs/external_runtime.rb:29:in `exec' execjs (2.2.2) lib/execjs/external_runtime.rb:18:in `eval' execjs (2.2.2) lib/execjs/external_runtime.rb:36:in `call' coffee-script (2.3.0) lib/coffee_script.rb:76:in `compile' tilt (1.4.1) lib/tilt/coffee.rb:46:in `evaluate' tilt (1.4.1) lib/tilt/template.rb:103:in `render' sprockets (2.12.3) lib/sprockets/context.rb:197:in `block in evaluate' sprockets (2.12.3) lib/sprockets/context.rb:194:in `each' sprockets (2.12.3) lib/sprockets/context.rb:194:in `evaluate' sprockets (2.12.3) lib/sprockets/processed_asset.rb:12:in `initialize' sprockets (2.12.3) lib/sprockets/base.rb:374:in `new' sprockets (2.12.3) lib/sprockets/base.rb:374:in `block in build_asset' sprockets (2.12.3) lib/sprockets/base.rb:395:in `circular_call_protection' sprockets (2.12.3) lib/sprockets/base.rb:373:in `build_asset' sprockets (2.12.3) lib/sprockets/index.rb:94:in `block in build_asset' sprockets (2.12.3) lib/sprockets/caching.rb:58:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/processed_asset.rb:44:in `block in init_with' sprockets (2.12.3) lib/sprockets/processed_asset.rb:37:in `map' sprockets (2.12.3) lib/sprockets/processed_asset.rb:37:in `init_with' sprockets (2.12.3) lib/sprockets/asset.rb:24:in `from_hash' sprockets (2.12.3) lib/sprockets/caching.rb:54:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/bundled_asset.rb:37:in `init_with' sprockets (2.12.3) lib/sprockets/asset.rb:24:in `from_hash' sprockets (2.12.3) lib/sprockets/caching.rb:54:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/environment.rb:75:in `find_asset' sprockets (2.12.3) lib/sprockets/base.rb:295:in `[]' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:230:in `lookup_asset_for_path' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:190:in `check_errors_for' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:137:in `block in javascript_include_tag' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:136:in `map' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:136:in `javascript_include_tag' /home/josh/Projects/Dynamo/sprangular/app/views/layouts/sprangular/application.slim:29:in `_65b32affb99967e2be0b18c9b67deff2' actionview (4.1.9) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.9) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.9) lib/action_view/template.rb:339:in `instrument' actionview (4.1.9) lib/action_view/template.rb:143:in `render' deface (1.0.1) lib/deface/action_view_extensions.rb:41:in `render' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:67:in `render_with_layout' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:53:in `render_template' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:17:in `render' actionview (4.1.9) lib/action_view/renderer/renderer.rb:42:in `render_template' actionview (4.1.9) lib/action_view/renderer/renderer.rb:23:in `render' actionview (4.1.9) lib/action_view/rendering.rb:99:in `_render_template' actionpack (4.1.9) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.1.9) lib/action_view/rendering.rb:82:in `render_to_body' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.1.9) lib/action_controller/metal/renderers.rb:32:in `render_to_body' actionpack (4.1.9) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' activesupport (4.1.9) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/benchmark.rb:296:in `realtime' activesupport (4.1.9) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:41:in `block in render' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' activerecord (4.1.9) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:40:in `render' actionpack (4.1.9) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.1.9) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.1.9) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.9) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.9) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:149:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:86:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.9) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.9) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.9) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.9) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.9) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.9) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.9) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.9) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.9) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.9) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.9) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.9) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:82:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:73:in `block in call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `each' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:685:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/railtie.rb:194:in `public_send' railties (4.1.9) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:73:in `block in call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `each' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:685:in `call' warden (1.2.3) lib/warden/manager.rb:35:in `block in call' warden (1.2.3) lib/warden/manager.rb:34:in `catch' warden (1.2.3) lib/warden/manager.rb:34:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/cookies.rb:562:in `call' activerecord (4.1.9) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.9) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' activerecord (4.1.9) lib/active_record/migration.rb:380:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.9) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.9) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.6ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (116.7ms) Started GET "/" for 127.0.0.1 at 2015-02-02 16:07:15 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (4608.1ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (5137.5ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (289.4ms) Completed 500 Internal Server Error in 5865ms ActionView::Template::Error (SyntaxError: [stdin]:25:5: unexpected / (in /home/josh/Projects/Dynamo/sprangular/app/assets/javascripts/sprangular/directives/dropdown.coffee)): 26: 27: ng-include(src="'assets/layout/footer.html'") 28: 29: = javascript_include_tag "application" 30: 31: = yield 32: execjs (2.2.2) lib/execjs/external_runtime.rb:62:in `extract_result' execjs (2.2.2) lib/execjs/external_runtime.rb:29:in `exec' execjs (2.2.2) lib/execjs/external_runtime.rb:18:in `eval' execjs (2.2.2) lib/execjs/external_runtime.rb:36:in `call' coffee-script (2.3.0) lib/coffee_script.rb:76:in `compile' tilt (1.4.1) lib/tilt/coffee.rb:46:in `evaluate' tilt (1.4.1) lib/tilt/template.rb:103:in `render' sprockets (2.12.3) lib/sprockets/context.rb:197:in `block in evaluate' sprockets (2.12.3) lib/sprockets/context.rb:194:in `each' sprockets (2.12.3) lib/sprockets/context.rb:194:in `evaluate' sprockets (2.12.3) lib/sprockets/processed_asset.rb:12:in `initialize' sprockets (2.12.3) lib/sprockets/base.rb:374:in `new' sprockets (2.12.3) lib/sprockets/base.rb:374:in `block in build_asset' sprockets (2.12.3) lib/sprockets/base.rb:395:in `circular_call_protection' sprockets (2.12.3) lib/sprockets/base.rb:373:in `build_asset' sprockets (2.12.3) lib/sprockets/index.rb:94:in `block in build_asset' sprockets (2.12.3) lib/sprockets/caching.rb:58:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/processed_asset.rb:44:in `block in init_with' sprockets (2.12.3) lib/sprockets/processed_asset.rb:37:in `map' sprockets (2.12.3) lib/sprockets/processed_asset.rb:37:in `init_with' sprockets (2.12.3) lib/sprockets/asset.rb:24:in `from_hash' sprockets (2.12.3) lib/sprockets/caching.rb:54:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/bundled_asset.rb:37:in `init_with' sprockets (2.12.3) lib/sprockets/asset.rb:24:in `from_hash' sprockets (2.12.3) lib/sprockets/caching.rb:54:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/environment.rb:75:in `find_asset' sprockets (2.12.3) lib/sprockets/base.rb:295:in `[]' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:230:in `lookup_asset_for_path' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:190:in `check_errors_for' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:137:in `block in javascript_include_tag' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:136:in `map' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:136:in `javascript_include_tag' /home/josh/Projects/Dynamo/sprangular/app/views/layouts/sprangular/application.slim:29:in `_65b32affb99967e2be0b18c9b67deff2' actionview (4.1.9) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.9) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.9) lib/action_view/template.rb:339:in `instrument' actionview (4.1.9) lib/action_view/template.rb:143:in `render' deface (1.0.1) lib/deface/action_view_extensions.rb:41:in `render' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:67:in `render_with_layout' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:53:in `render_template' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:17:in `render' actionview (4.1.9) lib/action_view/renderer/renderer.rb:42:in `render_template' actionview (4.1.9) lib/action_view/renderer/renderer.rb:23:in `render' actionview (4.1.9) lib/action_view/rendering.rb:99:in `_render_template' actionpack (4.1.9) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.1.9) lib/action_view/rendering.rb:82:in `render_to_body' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.1.9) lib/action_controller/metal/renderers.rb:32:in `render_to_body' actionpack (4.1.9) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' activesupport (4.1.9) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/benchmark.rb:296:in `realtime' activesupport (4.1.9) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:41:in `block in render' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' activerecord (4.1.9) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:40:in `render' actionpack (4.1.9) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.1.9) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.1.9) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.9) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.9) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:149:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:86:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.9) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.9) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.9) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.9) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.9) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.9) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.9) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.9) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.9) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.9) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.9) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.9) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:82:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:73:in `block in call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `each' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:685:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/railtie.rb:194:in `public_send' railties (4.1.9) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:73:in `block in call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `each' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:685:in `call' warden (1.2.3) lib/warden/manager.rb:35:in `block in call' warden (1.2.3) lib/warden/manager.rb:34:in `catch' warden (1.2.3) lib/warden/manager.rb:34:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/cookies.rb:562:in `call' activerecord (4.1.9) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.9) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' activerecord (4.1.9) lib/active_record/migration.rb:380:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.9) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.9) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.2ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.7ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (119.0ms) Started GET "/" for 127.0.0.1 at 2015-02-02 16:08:17 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.1ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (4103.2ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (4600.5ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (214.9ms) Completed 500 Internal Server Error in 5323ms ActionView::Template::Error (SyntaxError: [stdin]:25:6: unexpected / (in /home/josh/Projects/Dynamo/sprangular/app/assets/javascripts/sprangular/directives/dropdown.coffee)): 26: 27: ng-include(src="'assets/layout/footer.html'") 28: 29: = javascript_include_tag "application" 30: 31: = yield 32: execjs (2.2.2) lib/execjs/external_runtime.rb:62:in `extract_result' execjs (2.2.2) lib/execjs/external_runtime.rb:29:in `exec' execjs (2.2.2) lib/execjs/external_runtime.rb:18:in `eval' execjs (2.2.2) lib/execjs/external_runtime.rb:36:in `call' coffee-script (2.3.0) lib/coffee_script.rb:76:in `compile' tilt (1.4.1) lib/tilt/coffee.rb:46:in `evaluate' tilt (1.4.1) lib/tilt/template.rb:103:in `render' sprockets (2.12.3) lib/sprockets/context.rb:197:in `block in evaluate' sprockets (2.12.3) lib/sprockets/context.rb:194:in `each' sprockets (2.12.3) lib/sprockets/context.rb:194:in `evaluate' sprockets (2.12.3) lib/sprockets/processed_asset.rb:12:in `initialize' sprockets (2.12.3) lib/sprockets/base.rb:374:in `new' sprockets (2.12.3) lib/sprockets/base.rb:374:in `block in build_asset' sprockets (2.12.3) lib/sprockets/base.rb:395:in `circular_call_protection' sprockets (2.12.3) lib/sprockets/base.rb:373:in `build_asset' sprockets (2.12.3) lib/sprockets/index.rb:94:in `block in build_asset' sprockets (2.12.3) lib/sprockets/caching.rb:58:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/processed_asset.rb:44:in `block in init_with' sprockets (2.12.3) lib/sprockets/processed_asset.rb:37:in `map' sprockets (2.12.3) lib/sprockets/processed_asset.rb:37:in `init_with' sprockets (2.12.3) lib/sprockets/asset.rb:24:in `from_hash' sprockets (2.12.3) lib/sprockets/caching.rb:54:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/bundled_asset.rb:37:in `init_with' sprockets (2.12.3) lib/sprockets/asset.rb:24:in `from_hash' sprockets (2.12.3) lib/sprockets/caching.rb:54:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/environment.rb:75:in `find_asset' sprockets (2.12.3) lib/sprockets/base.rb:295:in `[]' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:230:in `lookup_asset_for_path' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:190:in `check_errors_for' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:137:in `block in javascript_include_tag' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:136:in `map' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:136:in `javascript_include_tag' /home/josh/Projects/Dynamo/sprangular/app/views/layouts/sprangular/application.slim:29:in `_65b32affb99967e2be0b18c9b67deff2' actionview (4.1.9) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.9) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.9) lib/action_view/template.rb:339:in `instrument' actionview (4.1.9) lib/action_view/template.rb:143:in `render' deface (1.0.1) lib/deface/action_view_extensions.rb:41:in `render' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:67:in `render_with_layout' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:53:in `render_template' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:17:in `render' actionview (4.1.9) lib/action_view/renderer/renderer.rb:42:in `render_template' actionview (4.1.9) lib/action_view/renderer/renderer.rb:23:in `render' actionview (4.1.9) lib/action_view/rendering.rb:99:in `_render_template' actionpack (4.1.9) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.1.9) lib/action_view/rendering.rb:82:in `render_to_body' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.1.9) lib/action_controller/metal/renderers.rb:32:in `render_to_body' actionpack (4.1.9) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' activesupport (4.1.9) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/benchmark.rb:296:in `realtime' activesupport (4.1.9) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:41:in `block in render' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' activerecord (4.1.9) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:40:in `render' actionpack (4.1.9) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.1.9) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.1.9) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.9) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.9) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:149:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:86:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.9) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.9) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.9) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.9) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.9) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.9) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.9) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.9) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.9) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.9) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.9) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.9) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:82:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:73:in `block in call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `each' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:685:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/railtie.rb:194:in `public_send' railties (4.1.9) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:73:in `block in call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `each' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:685:in `call' warden (1.2.3) lib/warden/manager.rb:35:in `block in call' warden (1.2.3) lib/warden/manager.rb:34:in `catch' warden (1.2.3) lib/warden/manager.rb:34:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/cookies.rb:562:in `call' activerecord (4.1.9) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.9) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' activerecord (4.1.9) lib/active_record/migration.rb:380:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.9) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.9) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.3ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.8ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (113.2ms) Started GET "/" for 127.0.0.1 at 2015-02-02 16:09:22 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (4159.5ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (4675.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (275.5ms) Completed 500 Internal Server Error in 5342ms ActionView::Template::Error (SyntaxError: [stdin]:25:29: unexpected / (in /home/josh/Projects/Dynamo/sprangular/app/assets/javascripts/sprangular/directives/dropdown.coffee)): 26: 27: ng-include(src="'assets/layout/footer.html'") 28: 29: = javascript_include_tag "application" 30: 31: = yield 32: execjs (2.2.2) lib/execjs/external_runtime.rb:62:in `extract_result' execjs (2.2.2) lib/execjs/external_runtime.rb:29:in `exec' execjs (2.2.2) lib/execjs/external_runtime.rb:18:in `eval' execjs (2.2.2) lib/execjs/external_runtime.rb:36:in `call' coffee-script (2.3.0) lib/coffee_script.rb:76:in `compile' tilt (1.4.1) lib/tilt/coffee.rb:46:in `evaluate' tilt (1.4.1) lib/tilt/template.rb:103:in `render' sprockets (2.12.3) lib/sprockets/context.rb:197:in `block in evaluate' sprockets (2.12.3) lib/sprockets/context.rb:194:in `each' sprockets (2.12.3) lib/sprockets/context.rb:194:in `evaluate' sprockets (2.12.3) lib/sprockets/processed_asset.rb:12:in `initialize' sprockets (2.12.3) lib/sprockets/base.rb:374:in `new' sprockets (2.12.3) lib/sprockets/base.rb:374:in `block in build_asset' sprockets (2.12.3) lib/sprockets/base.rb:395:in `circular_call_protection' sprockets (2.12.3) lib/sprockets/base.rb:373:in `build_asset' sprockets (2.12.3) lib/sprockets/index.rb:94:in `block in build_asset' sprockets (2.12.3) lib/sprockets/caching.rb:58:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/processed_asset.rb:44:in `block in init_with' sprockets (2.12.3) lib/sprockets/processed_asset.rb:37:in `map' sprockets (2.12.3) lib/sprockets/processed_asset.rb:37:in `init_with' sprockets (2.12.3) lib/sprockets/asset.rb:24:in `from_hash' sprockets (2.12.3) lib/sprockets/caching.rb:54:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/bundled_asset.rb:37:in `init_with' sprockets (2.12.3) lib/sprockets/asset.rb:24:in `from_hash' sprockets (2.12.3) lib/sprockets/caching.rb:54:in `cache_asset' sprockets (2.12.3) lib/sprockets/index.rb:93:in `build_asset' sprockets (2.12.3) lib/sprockets/base.rb:287:in `find_asset' sprockets (2.12.3) lib/sprockets/index.rb:61:in `find_asset' sprockets (2.12.3) lib/sprockets/environment.rb:75:in `find_asset' sprockets (2.12.3) lib/sprockets/base.rb:295:in `[]' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:230:in `lookup_asset_for_path' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:190:in `check_errors_for' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:137:in `block in javascript_include_tag' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:136:in `map' sprockets-rails (2.2.2) lib/sprockets/rails/helper.rb:136:in `javascript_include_tag' /home/josh/Projects/Dynamo/sprangular/app/views/layouts/sprangular/application.slim:29:in `_65b32affb99967e2be0b18c9b67deff2' actionview (4.1.9) lib/action_view/template.rb:145:in `block in render' activesupport (4.1.9) lib/active_support/notifications.rb:161:in `instrument' actionview (4.1.9) lib/action_view/template.rb:339:in `instrument' actionview (4.1.9) lib/action_view/template.rb:143:in `render' deface (1.0.1) lib/deface/action_view_extensions.rb:41:in `render' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:67:in `render_with_layout' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:53:in `render_template' actionview (4.1.9) lib/action_view/renderer/template_renderer.rb:17:in `render' actionview (4.1.9) lib/action_view/renderer/renderer.rb:42:in `render_template' actionview (4.1.9) lib/action_view/renderer/renderer.rb:23:in `render' actionview (4.1.9) lib/action_view/rendering.rb:99:in `_render_template' actionpack (4.1.9) lib/action_controller/metal/streaming.rb:217:in `_render_template' actionview (4.1.9) lib/action_view/rendering.rb:82:in `render_to_body' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:32:in `render_to_body' actionpack (4.1.9) lib/action_controller/metal/renderers.rb:32:in `render_to_body' actionpack (4.1.9) lib/abstract_controller/rendering.rb:25:in `render' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:16:in `render' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:41:in `block (2 levels) in render' activesupport (4.1.9) lib/active_support/core_ext/benchmark.rb:12:in `block in ms' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/benchmark.rb:296:in `realtime' activesupport (4.1.9) lib/active_support/core_ext/benchmark.rb:12:in `ms' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:41:in `block in render' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:84:in `cleanup_view_runtime' activerecord (4.1.9) lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:40:in `render' actionpack (4.1.9) lib/action_controller/metal/implicit_render.rb:10:in `default_render' actionpack (4.1.9) lib/action_controller/metal/implicit_render.rb:5:in `send_action' actionpack (4.1.9) lib/abstract_controller/base.rb:189:in `process_action' actionpack (4.1.9) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (4.1.9) lib/abstract_controller/callbacks.rb:20:in `block in process_action' activesupport (4.1.9) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:113:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:229:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:149:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:149:in `block in halting_and_conditional' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:166:in `block in halting' activesupport (4.1.9) lib/active_support/callbacks.rb:86:in `call' activesupport (4.1.9) lib/active_support/callbacks.rb:86:in `run_callbacks' actionpack (4.1.9) lib/abstract_controller/callbacks.rb:19:in `process_action' actionpack (4.1.9) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' activesupport (4.1.9) lib/active_support/notifications.rb:159:in `block in instrument' activesupport (4.1.9) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (4.1.9) lib/active_support/notifications.rb:159:in `instrument' actionpack (4.1.9) lib/action_controller/metal/instrumentation.rb:30:in `process_action' actionpack (4.1.9) lib/action_controller/metal/params_wrapper.rb:250:in `process_action' activerecord (4.1.9) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (4.1.9) lib/abstract_controller/base.rb:136:in `process' actionview (4.1.9) lib/action_view/rendering.rb:30:in `process' actionpack (4.1.9) lib/action_controller/metal.rb:196:in `dispatch' actionpack (4.1.9) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' actionpack (4.1.9) lib/action_controller/metal.rb:232:in `block in action' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:82:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:82:in `dispatch' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:50:in `call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:73:in `block in call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `each' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:685:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/railtie.rb:194:in `public_send' railties (4.1.9) lib/rails/railtie.rb:194:in `method_missing' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:73:in `block in call' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `each' actionpack (4.1.9) lib/action_dispatch/journey/router.rb:59:in `call' actionpack (4.1.9) lib/action_dispatch/routing/route_set.rb:685:in `call' warden (1.2.3) lib/warden/manager.rb:35:in `block in call' warden (1.2.3) lib/warden/manager.rb:34:in `catch' warden (1.2.3) lib/warden/manager.rb:34:in `call' rack (1.5.2) lib/rack/etag.rb:23:in `call' rack (1.5.2) lib/rack/conditionalget.rb:25:in `call' rack (1.5.2) lib/rack/head.rb:11:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/params_parser.rb:27:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/flash.rb:254:in `call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in `context' rack (1.5.2) lib/rack/session/abstract/id.rb:220:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/cookies.rb:562:in `call' activerecord (4.1.9) lib/active_record/query_cache.rb:36:in `call' activerecord (4.1.9) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' activerecord (4.1.9) lib/active_record/migration.rb:380:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' activesupport (4.1.9) lib/active_support/callbacks.rb:82:in `run_callbacks' actionpack (4.1.9) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/reloader.rb:73:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/remote_ip.rb:76:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.6ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.8ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (115.7ms) Started GET "/" for 127.0.0.1 at 2015-02-02 16:09:41 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.1ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (4754.2ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (5265.2ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (290.4ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.3ms) Completed 200 OK in 9538ms (Views: 9499.0ms | ActiveRecord: 29.6ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-02 16:09:51 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-02 16:09:51 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:51 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:52 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:52 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:52 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:52 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:52 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:52 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:52 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:52 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:52 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:52 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:52 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:52 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:52 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:53 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:53 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:53 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:53 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:53 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:53 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:53 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:53 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:53 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:53 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:53 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:53 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:53 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:53 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:54 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:54 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:54 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:54 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:54 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:54 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:54 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:54 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:54 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:54 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:54 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:54 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:54 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:54 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:54 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:55 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:55 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:55 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:55 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:55 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:55 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:55 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:55 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:55 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:55 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:55 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:55 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:55 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:55 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:55 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:56 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:56 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:56 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:56 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:56 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:56 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:56 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:56 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:56 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:56 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:56 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:56 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:56 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:57 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:57 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:57 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:57 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:57 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:57 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:57 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-02 16:09:57 -0500 Started GET "/" for 127.0.0.1 at 2015-02-02 16:10:14 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (1.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6611.1ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7295.9ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (295.8ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.6ms) Completed 200 OK in 10091ms (Views: 10038.5ms | ActiveRecord: 40.6ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-02 16:10:25 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:25 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-02 16:10:25 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:26 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:26 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:26 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:26 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:26 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:26 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:26 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:26 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:26 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:26 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:26 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:26 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:26 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:26 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:26 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:27 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:27 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:27 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:27 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:27 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:27 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:27 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:27 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:27 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:27 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:27 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:27 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:27 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:27 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:28 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:28 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:28 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:28 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:28 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:28 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:28 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:28 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:28 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:28 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:28 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:28 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:28 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:28 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:28 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:28 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:29 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:29 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:29 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:29 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:29 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:29 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:29 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:29 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:29 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:29 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:29 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:29 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:29 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:29 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:30 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:30 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:30 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:30 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:30 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:30 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:30 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:30 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:30 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:30 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:30 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:30 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:30 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:30 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:30 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:30 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:31 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:31 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-02 16:10:31 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-02 16:10:31 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.2ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 313ms (Views: 308.4ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-02 16:10:31 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 21:10:32.012520') AND ("spree_products".available_on <= '2015-02-02 21:10:32.014481') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2517.0ms) Completed 200 OK in 2621ms (Views: 2574.8ms | ActiveRecord: 26.0ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-02 16:10:34 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-02 16:10:34 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-02 16:10:34 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (178.9ms) Completed 200 OK in 209ms (Views: 196.0ms | ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2015-02-02 16:11:11 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6351.2ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7195.5ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (284.9ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.3ms) Completed 200 OK in 11357ms (Views: 11306.5ms | ActiveRecord: 37.2ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-02 16:11:23 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-02 16:11:23 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:23 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:24 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:24 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:24 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:24 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:24 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:24 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:24 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:24 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:24 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:24 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:24 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:24 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:24 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:24 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:24 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:25 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:25 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:25 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:25 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:25 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:25 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:25 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:25 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:25 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:25 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:25 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:25 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:25 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:25 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:26 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:26 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:26 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:26 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:26 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:26 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:26 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:26 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:26 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:26 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:26 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:26 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:26 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:26 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:26 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:27 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:27 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:27 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:27 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:27 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:27 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:27 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:27 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:27 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:27 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:27 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:27 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:27 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:28 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:28 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:28 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:28 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:28 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:28 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:28 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:28 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:28 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:28 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:28 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:28 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:28 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:28 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:28 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:28 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:28 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:29 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:29 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:29 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-02 16:11:29 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-02 16:11:30 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.3ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 364ms (Views: 356.8ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-02 16:11:30 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.7ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 21:11:30.684929') AND ("spree_products".available_on <= '2015-02-02 21:11:30.686164') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2365.9ms) Completed 200 OK in 2432ms (Views: 2398.1ms | ActiveRecord: 25.0ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-02 16:11:33 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-02 16:11:33 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-02 16:11:33 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (183.1ms) Completed 200 OK in 216ms (Views: 203.2ms | ActiveRecord: 7.6ms) Started GET "/" for 127.0.0.1 at 2015-02-02 16:14:02 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.8ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (1.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.9ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (5739.3ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (6185.1ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (408.8ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.3ms) Completed 200 OK in 11045ms (Views: 11001.1ms | ActiveRecord: 33.9ms) Started GET "/" for 127.0.0.1 at 2015-02-02 16:14:13 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (7019.6ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7884.6ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (482.1ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.6ms) Completed 200 OK in 11029ms (Views: 10974.5ms | ActiveRecord: 41.1ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-02 16:14:25 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-02 16:14:25 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:25 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:25 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:25 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:25 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:26 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:26 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:26 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:26 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:26 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:26 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:26 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:26 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:27 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:27 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:27 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:27 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:27 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:27 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:27 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:27 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:27 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:28 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:28 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:28 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:28 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:28 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:28 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:28 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:28 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:28 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:29 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:29 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:29 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:29 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:29 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:29 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:29 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:29 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:29 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:30 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:30 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:30 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:30 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:30 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:30 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:30 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:31 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:31 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:31 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:31 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:31 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:31 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:31 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:31 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:32 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:32 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:32 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:32 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:32 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:32 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:32 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:32 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:33 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:33 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:33 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:33 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:33 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:33 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:33 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:33 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:33 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:33 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:34 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:34 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:34 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:34 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:34 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:34 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-02 16:14:34 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-02 16:14:36 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.8ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 302ms (Views: 295.5ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-02 16:14:36 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.9ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 21:14:36.577058') AND ("spree_products".available_on <= '2015-02-02 21:14:36.581114') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.6ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2679.9ms) Completed 200 OK in 2766ms (Views: 2719.2ms | ActiveRecord: 27.4ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-02 16:14:39 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-02 16:14:39 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.5ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (1.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (278.7ms) Completed 200 OK in 316ms (Views: 296.0ms | ActiveRecord: 11.6ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-02 16:14:39 -0500 Started GET "/" for 127.0.0.1 at 2015-02-02 16:25:28 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (1.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6527.3ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7598.6ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (310.8ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.1ms) Completed 200 OK in 12249ms (Views: 12185.7ms | ActiveRecord: 42.4ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-02 16:25:41 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-02 16:25:41 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:41 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:42 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:42 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:42 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:42 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:42 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:42 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:42 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:42 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:42 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:42 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:42 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:43 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:43 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:43 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:43 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:43 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:43 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:43 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:43 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:43 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:43 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:43 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:43 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:43 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:43 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:44 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:44 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:44 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:44 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:44 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:44 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:44 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:44 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:44 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:44 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:44 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:45 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:45 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:45 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:45 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:45 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:45 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:45 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:45 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:45 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:45 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:45 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:45 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:45 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:45 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:45 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:46 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:46 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:46 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:46 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:46 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:46 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:46 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:46 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:46 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:46 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:46 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:46 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:47 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:47 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:47 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:47 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:47 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:47 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:47 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:47 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:47 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:47 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:47 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:47 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:47 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:48 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-02 16:25:48 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-02 16:25:48 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.2ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 315ms (Views: 308.7ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-02 16:25:49 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (1.1ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 21:25:49.324943') AND ("spree_products".available_on <= '2015-02-02 21:25:49.326526') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (1.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (1.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2484.8ms) Completed 200 OK in 2571ms (Views: 2529.8ms | ActiveRecord: 27.6ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-02 16:25:51 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-02 16:25:51 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-02 16:25:52 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.5ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (1.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (208.3ms) Completed 200 OK in 249ms (Views: 232.6ms | ActiveRecord: 10.9ms) Started GET "/" for 127.0.0.1 at 2015-02-02 16:28:26 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.7ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.1ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6400.0ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7650.0ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (423.9ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.2ms) Completed 200 OK in 11821ms (Views: 11763.9ms | ActiveRecord: 39.0ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-02 16:28:39 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-02 16:28:39 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:39 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:39 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:39 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:39 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:39 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:40 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:40 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:40 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:40 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:40 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:40 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:40 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:40 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:40 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:40 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:40 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:40 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:41 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:41 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:41 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:41 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:41 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:41 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:41 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:41 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:41 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:41 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:41 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:41 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:42 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:42 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:42 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:42 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:42 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:42 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:42 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:42 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:42 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:42 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:42 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:42 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:43 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:43 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:43 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:43 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:43 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:43 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:43 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:43 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:43 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:43 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:43 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:43 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:43 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:44 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:44 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:44 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:44 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:44 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:44 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:44 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:44 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:44 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:44 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:44 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:44 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:44 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:44 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:45 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:45 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:45 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:45 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:45 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:45 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:45 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:45 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:45 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:46 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-02 16:28:46 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-02 16:28:46 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.5ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 309ms (Views: 303.5ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-02 16:28:47 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.7ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 21:28:47.114794') AND ("spree_products".available_on <= '2015-02-02 21:28:47.116824') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2611.2ms) Completed 200 OK in 2687ms (Views: 2651.7ms | ActiveRecord: 24.5ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-02 16:28:49 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-02 16:28:49 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (183.9ms) Completed 200 OK in 212ms (Views: 198.9ms | ActiveRecord: 8.0ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-02 16:28:50 -0500 Started GET "/" for 127.0.0.1 at 2015-02-02 16:29:46 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6289.6ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (6954.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (389.8ms) Spree::Tracker Load (0.3ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.5ms) Completed 200 OK in 9641ms (Views: 9589.2ms | ActiveRecord: 36.8ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-02 16:29:57 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-02 16:29:57 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-02 16:29:57 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 16:29:57 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 16:29:57 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:29:57 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-02 16:29:57 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:29:58 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-02 16:29:58 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-02 16:29:58 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 16:29:58 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-02 16:29:58 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-02 16:29:58 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-02 16:29:58 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 16:29:58 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-02 16:29:58 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-02 16:29:58 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-02 16:29:58 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-02 16:29:58 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-02 16:29:58 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-02 16:29:59 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 16:29:59 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-02 16:29:59 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 16:29:59 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-02 16:29:59 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-02 16:29:59 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-02 16:29:59 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-02 16:29:59 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-02 16:29:59 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-02 16:29:59 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-02 16:29:59 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:00 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:00 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:00 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:00 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:00 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:00 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:00 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:00 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:00 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:00 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:00 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:00 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:00 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:01 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:01 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:01 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:01 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:01 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:01 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:01 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:01 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:01 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:01 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:01 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:01 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:01 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:01 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:02 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:02 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:02 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:02 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:02 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:02 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:02 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:02 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:02 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:02 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:02 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:02 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:02 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:03 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:03 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:03 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:03 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:03 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:03 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:03 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:03 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:03 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-02 16:30:03 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-02 16:30:03 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.7ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 336ms (Views: 324.5ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-02 16:30:04 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 21:30:04.328845') AND ("spree_products".available_on <= '2015-02-02 21:30:04.329960') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2567.1ms) Completed 200 OK in 2639ms (Views: 2604.1ms | ActiveRecord: 25.7ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-02 16:30:06 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-02 16:30:07 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (238.0ms) Completed 200 OK in 266ms (Views: 250.7ms | ActiveRecord: 9.9ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-02 16:30:07 -0500 Started GET "/" for 127.0.0.1 at 2015-02-02 16:32:52 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6317.8ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7112.3ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (301.9ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.2ms) Completed 200 OK in 11277ms (Views: 11225.3ms | ActiveRecord: 37.1ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-02 16:33:04 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-02 16:33:04 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:04 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:04 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:04 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:04 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:04 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:04 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:05 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:05 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:05 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:05 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:05 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:05 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:05 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:05 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:05 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:05 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:05 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:05 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:05 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:06 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:06 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:06 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:06 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:06 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:06 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:06 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:06 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:06 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:06 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:06 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:07 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:07 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:07 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:07 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:07 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:07 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:07 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:07 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:07 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:07 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:07 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:07 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:07 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:07 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:08 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:08 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:08 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:08 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:08 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:08 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:08 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:08 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:08 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:08 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:08 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:08 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:08 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:08 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:09 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:09 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:09 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:09 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:09 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:09 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:09 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:09 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:09 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:09 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:09 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:09 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:10 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:10 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:10 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:10 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:10 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:10 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:10 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:10 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-02 16:33:11 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-02 16:33:11 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (2.7ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 309ms (Views: 302.5ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-02 16:33:11 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.8ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 21:33:12.036109') AND ("spree_products".available_on <= '2015-02-02 21:33:12.038170') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2428.1ms) Completed 200 OK in 2509ms (Views: 2469.0ms | ActiveRecord: 24.8ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-02 16:33:14 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-02 16:33:14 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-02 16:33:14 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (221.5ms) Completed 200 OK in 264ms (Views: 249.1ms | ActiveRecord: 7.9ms) Started GET "/" for 127.0.0.1 at 2015-02-02 16:33:49 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6731.1ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7617.3ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (405.6ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.0ms) Completed 200 OK in 11937ms (Views: 11885.3ms | ActiveRecord: 39.0ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-02 16:34:01 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:01 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:02 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:02 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:02 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-02 16:34:02 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:02 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:02 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:02 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:02 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:02 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:02 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:02 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:02 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:02 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:02 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:03 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:03 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:03 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:03 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:03 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:03 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:03 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:03 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:03 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:03 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:03 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:03 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:03 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:03 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:04 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:04 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:04 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:04 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:04 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:04 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:04 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:04 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:04 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:04 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:04 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:04 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:04 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:04 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:04 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:05 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:05 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:05 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:05 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:05 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:05 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:05 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:05 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:05 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:05 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:05 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:05 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:05 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:05 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:06 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:06 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:06 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:06 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:06 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:06 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:06 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:06 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:06 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:06 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:06 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:06 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:06 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:07 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:07 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:07 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:07 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:07 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:07 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:07 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:07 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-02 16:34:07 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-02 16:34:08 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (2.0ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 388ms (Views: 380.3ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-02 16:34:08 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 21:34:09.022905') AND ("spree_products".available_on <= '2015-02-02 21:34:09.025536') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2599.9ms) Completed 200 OK in 2682ms (Views: 2637.5ms | ActiveRecord: 26.6ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-02 16:34:11 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-02 16:34:11 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (2.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (261.4ms) Completed 200 OK in 309ms (Views: 288.9ms | ActiveRecord: 12.5ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-02 16:34:12 -0500 Started GET "/" for 127.0.0.1 at 2015-02-02 16:35:33 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6371.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7018.6ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (401.0ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.2ms) Completed 200 OK in 11180ms (Views: 11129.4ms | ActiveRecord: 37.8ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-02 16:35:45 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-02 16:35:45 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:46 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:46 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:46 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:46 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:46 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:46 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:46 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:46 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:46 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:46 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:46 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:46 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:46 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:47 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:47 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:47 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:47 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:47 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:47 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:47 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:47 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:47 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:47 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:47 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:47 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:47 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:47 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:47 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:47 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:48 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:48 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:48 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:48 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:48 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:48 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:48 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:48 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:48 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:48 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:48 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:48 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:48 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:49 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:49 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:49 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:49 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:49 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:49 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:49 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:49 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:49 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:49 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:49 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:49 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:49 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:49 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:49 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:50 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:50 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:50 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:50 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:50 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:50 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:50 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:50 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:50 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:50 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:50 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:50 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:50 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:50 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:51 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:51 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:51 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:51 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:51 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:51 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:51 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-02 16:35:51 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-02 16:35:52 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.3ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 345ms (Views: 338.2ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-02 16:35:52 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 21:35:52.809267') AND ("spree_products".available_on <= '2015-02-02 21:35:52.811331') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2568.6ms) Completed 200 OK in 2651ms (Views: 2609.5ms | ActiveRecord: 26.4ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-02 16:35:55 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-02 16:35:55 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (1.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (246.6ms) Completed 200 OK in 285ms (Views: 267.7ms | ActiveRecord: 9.8ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-02 16:35:55 -0500 Started GET "/" for 127.0.0.1 at 2015-02-02 16:36:27 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6426.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7194.6ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (286.7ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.3ms) Completed 200 OK in 11503ms (Views: 11450.6ms | ActiveRecord: 38.1ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-02 16:36:40 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:40 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:40 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:40 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-02 16:36:40 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:40 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:40 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:40 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:40 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:40 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:40 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:40 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:41 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:41 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:41 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:41 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:41 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:41 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:41 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:41 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:41 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:41 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:41 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:41 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:41 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:41 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:42 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:42 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:42 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:42 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:42 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:42 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:42 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:42 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:42 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:42 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:42 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:42 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:42 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:43 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:43 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:43 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:43 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:43 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:43 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:43 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:43 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:43 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:43 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:43 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:43 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:43 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:43 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:43 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:43 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:44 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:44 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:44 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:44 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:44 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:44 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:44 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:44 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:44 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:44 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:44 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:44 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:44 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:44 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:45 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:45 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:45 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:45 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:45 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:45 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:45 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:45 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:45 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:45 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:46 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-02 16:36:46 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-02 16:36:46 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (2.0ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 348ms (Views: 342.9ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-02 16:36:47 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 21:36:47.097600') AND ("spree_products".available_on <= '2015-02-02 21:36:47.098947') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2417.8ms) Completed 200 OK in 2498ms (Views: 2458.1ms | ActiveRecord: 24.9ms) Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-02 16:36:49 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.5ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (187.6ms) Completed 200 OK in 215ms (Views: 202.4ms | ActiveRecord: 7.6ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-02 16:36:49 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-02 16:36:49 -0500 Started GET "/" for 127.0.0.1 at 2015-02-02 16:36:56 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.1ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (1.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6577.0ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7949.8ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (407.1ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (4.9ms) Completed 200 OK in 10635ms (Views: 10578.6ms | ActiveRecord: 39.9ms) Started GET "/" for 127.0.0.1 at 2015-02-02 16:37:07 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.7ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6507.5ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7291.6ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (517.4ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.0ms) Completed 200 OK in 10429ms (Views: 10378.2ms | ActiveRecord: 38.6ms) Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-02 16:37:18 -0500 Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-02 16:37:18 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:18 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:19 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:19 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:19 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:19 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:19 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:19 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:19 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:19 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:19 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:19 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:20 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:20 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:20 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:20 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:20 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:20 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:20 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:20 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:20 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:20 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:20 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:20 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:20 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:21 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:21 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:21 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:21 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:21 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:21 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:21 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:21 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:21 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:21 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:22 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:22 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:22 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:22 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:22 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:22 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:22 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:22 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:22 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:22 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:22 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:22 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:22 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:23 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:23 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:23 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:23 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:23 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:23 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:23 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:23 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:23 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:23 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:23 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:23 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:23 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:24 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:24 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:24 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:24 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:24 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:24 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:24 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:24 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:24 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:24 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:24 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:25 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:25 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:25 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:25 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:25 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:25 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:25 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-02 16:37:25 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-02 16:37:25 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.7ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 343ms (Views: 334.0ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-02 16:37:26 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.9ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 21:37:26.520992') AND ("spree_products".available_on <= '2015-02-02 21:37:26.522245') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (1.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2710.4ms) Completed 200 OK in 2816ms (Views: 2777.9ms | ActiveRecord: 27.4ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-02 16:37:29 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-02 16:37:29 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.5ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (224.3ms) Completed 200 OK in 263ms (Views: 245.0ms | ActiveRecord: 10.9ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-02 16:37:29 -0500 Started GET "/" for 127.0.0.1 at 2015-02-02 16:38:55 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6375.3ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7047.3ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (413.2ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.0ms) Completed 200 OK in 11184ms (Views: 11133.6ms | ActiveRecord: 38.2ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-02 16:39:07 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:07 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:07 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-02 16:39:07 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:07 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:07 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:07 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:07 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:08 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:08 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:08 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:08 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:08 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:08 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:08 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:08 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:08 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:08 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:08 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:08 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:08 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:09 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:09 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:09 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:09 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:09 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:09 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:09 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:09 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:09 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:09 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:09 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:09 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:09 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:10 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:10 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:10 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:10 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:10 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:10 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:10 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:10 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:10 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:10 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:10 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:10 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:10 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:11 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:11 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:11 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:11 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:11 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:11 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:11 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:11 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:11 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:11 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:11 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:11 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:11 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:11 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:12 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:12 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:12 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:12 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:12 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:12 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:12 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:12 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:12 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:12 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:12 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:12 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:12 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:13 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:13 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:13 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:13 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:13 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:13 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-02 16:39:13 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-02 16:39:14 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.3ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 314ms (Views: 308.6ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-02 16:39:14 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.8ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 21:39:14.696853') AND ("spree_products".available_on <= '2015-02-02 21:39:14.700254') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2594.3ms) Completed 200 OK in 2667ms (Views: 2625.5ms | ActiveRecord: 25.0ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-02 16:39:17 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-02 16:39:17 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-02 16:39:17 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (1.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (2.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (283.7ms) Completed 200 OK in 346ms (Views: 319.9ms | ActiveRecord: 13.0ms) Started GET "/" for 127.0.0.1 at 2015-02-02 16:39:51 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6387.0ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7136.9ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (288.5ms) Spree::Tracker Load (0.7ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (5.3ms) Completed 200 OK in 11314ms (Views: 11262.2ms | ActiveRecord: 37.9ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-02 16:40:03 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-02 16:40:04 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:04 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:04 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:04 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:04 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:04 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:04 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:04 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:04 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:04 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:05 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:05 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:05 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:05 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:05 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:05 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:05 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:05 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:05 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:05 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:05 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:05 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:05 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:05 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:05 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:06 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:06 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:06 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:06 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:06 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:06 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:06 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:06 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:06 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:06 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:07 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:07 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:07 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:07 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:07 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:07 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:07 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:07 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:07 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:07 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:07 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:07 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:07 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:07 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:07 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:08 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:08 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:08 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:08 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:08 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:08 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:08 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:08 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:08 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:08 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:08 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:08 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:09 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:09 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:09 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:09 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:09 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:09 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:09 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:09 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:09 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:09 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:09 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:09 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:09 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:09 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:10 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:10 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:10 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-02 16:40:10 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-02 16:40:11 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.3ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 320ms (Views: 313.9ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-02 16:40:11 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 21:40:11.528200') AND ("spree_products".available_on <= '2015-02-02 21:40:11.529472') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2452.7ms) Completed 200 OK in 2516ms (Views: 2483.2ms | ActiveRecord: 23.8ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-02 16:40:14 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-02 16:40:14 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-02 16:40:14 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.5ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (205.8ms) Completed 200 OK in 247ms (Views: 232.3ms | ActiveRecord: 7.7ms) Started GET "/" for 127.0.0.1 at 2015-02-02 16:40:50 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6412.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7375.8ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (408.6ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.6ms) Completed 200 OK in 10056ms (Views: 10007.8ms | ActiveRecord: 36.4ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-02 16:41:01 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:01 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-02 16:41:01 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:01 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:01 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:01 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:01 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:01 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:02 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:02 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:02 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:02 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:02 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:02 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:02 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:02 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:02 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:02 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:02 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:02 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:03 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:03 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:03 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:03 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:03 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:03 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:03 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:03 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:03 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:03 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:03 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:03 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:03 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:04 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:04 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:04 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:04 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:04 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:04 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:04 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:04 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:04 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:04 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:04 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:04 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:05 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:05 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:05 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:05 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:05 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:05 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:05 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:05 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:05 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:05 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:05 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:05 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:05 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:05 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:05 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:06 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:06 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:06 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:06 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:06 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:06 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:06 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:06 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:06 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:06 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:06 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:06 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:07 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:07 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:07 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:07 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:07 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:07 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:07 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:07 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-02 16:41:07 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-02 16:41:07 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.2ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 306ms (Views: 301.8ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-02 16:41:08 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.7ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 21:41:08.300952') AND ("spree_products".available_on <= '2015-02-02 21:41:08.302918') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2486.0ms) Completed 200 OK in 2568ms (Views: 2528.6ms | ActiveRecord: 24.9ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-02 16:41:10 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-02 16:41:10 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-02 16:41:11 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.5ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (237.1ms) Completed 200 OK in 275ms (Views: 259.3ms | ActiveRecord: 9.2ms) Started GET "/api/products?page=1&per_page=8" for 127.0.0.1 at 2015-02-02 16:42:58 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"8"}  (0.7ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 21:42:59.025193') AND ("spree_products".available_on <= '2015-02-02 21:42:59.027380') LIMIT 8 OFFSET 0) subquery_for_count  (0.9ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 21:42:59.025193') AND ("spree_products".available_on <= '2015-02-02 21:42:59.027380') Spree::Product Load (1.1ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 21:42:59.025193') AND ("spree_products".available_on <= '2015-02-02 21:42:59.027380') LIMIT 8 OFFSET 0 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (1.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Image Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.3ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Price Load (0.7ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::ProductProperty Load (0.7ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY spree_product_properties.position Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_variants".position ASC Spree::Image Load (1.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.4ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.6ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (3968.7ms) Completed 200 OK in 4000ms (Views: 3959.3ms | ActiveRecord: 33.4ms) Started GET "/api/taxons/categories/mugs" for 127.0.0.1 at 2015-02-02 16:43:10 -0500 Processing by Sprangular::TaxonsController#show as JSON Parameters: {"permalink"=>"categories/mugs"} Spree::Taxon Load (1.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."permalink" = 'categories/mugs' ORDER BY "spree_taxons"."id" ASC LIMIT 1 Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 4]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxons/show.v1.rabl (17.2ms) Completed 200 OK in 75ms (Views: 58.4ms | ActiveRecord: 3.4ms) Started GET "/api/products?page=1&per_page=8&q%5Btaxons_permalink_eq%5D=categories%2Fmugs" for 127.0.0.1 at 2015-02-02 16:43:10 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"8", "q"=>{"taxons_permalink_eq"=>"categories/mugs"}}  (1.4ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL LEFT OUTER JOIN "spree_products_taxons" ON "spree_products_taxons"."product_id" = "spree_products"."id" LEFT OUTER JOIN "spree_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 21:43:10.356542') AND ("spree_products".available_on <= '2015-02-02 21:43:10.358652') AND "spree_taxons"."permalink" = 'categories/mugs' LIMIT 8 OFFSET 0) subquery_for_count  (1.3ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL LEFT OUTER JOIN "spree_products_taxons" ON "spree_products_taxons"."product_id" = "spree_products"."id" LEFT OUTER JOIN "spree_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 21:43:10.356542') AND ("spree_products".available_on <= '2015-02-02 21:43:10.358652') AND "spree_taxons"."permalink" = 'categories/mugs' Spree::Product Load (1.5ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL LEFT OUTER JOIN "spree_products_taxons" ON "spree_products_taxons"."product_id" = "spree_products"."id" LEFT OUTER JOIN "spree_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 21:43:10.356542') AND ("spree_products".available_on <= '2015-02-02 21:43:10.358652') AND "spree_taxons"."permalink" = 'categories/mugs' LIMIT 8 OFFSET 0 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (13, 14, 15, 16) Spree::Classification Load (0.6ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (13, 14, 15, 16) Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (4, 11, 10) Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (13, 14, 15, 16) Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (13, 14, 15, 16) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.4ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (13, 14, 15, 16) Spree::Price Load (0.7ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (13, 14, 15, 16) Spree::ProductProperty Load (1.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (13, 14, 15, 16) ORDER BY spree_product_properties.position Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10) Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (13, 14, 15, 16) ORDER BY "spree_variants".position ASC Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 13]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 13]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 13]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 13 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 13 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 13 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 4]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 14]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 14]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 14]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 14 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 14 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 14 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 15]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 15]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 15]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 15 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 15 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 15 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 16]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 16]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 16]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 16 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 16 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 16 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (1717.5ms) Completed 200 OK in 1769ms (Views: 1729.9ms | ActiveRecord: 18.4ms) Started GET "/api/taxons/categories/clothing" for 127.0.0.1 at 2015-02-02 16:43:14 -0500 Processing by Sprangular::TaxonsController#show as JSON Parameters: {"permalink"=>"categories/clothing"} Spree::Taxon Load (1.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."permalink" = 'categories/clothing' ORDER BY "spree_taxons"."id" ASC LIMIT 1 Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 5]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxons/show.v1.rabl (32.9ms) Completed 200 OK in 94ms (Views: 69.8ms | ActiveRecord: 4.2ms) Started GET "/api/products?page=1&per_page=8&q%5Btaxons_permalink_eq%5D=categories%2Fclothing" for 127.0.0.1 at 2015-02-02 16:43:15 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"8", "q"=>{"taxons_permalink_eq"=>"categories/clothing"}}  (0.9ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL LEFT OUTER JOIN "spree_products_taxons" ON "spree_products_taxons"."product_id" = "spree_products"."id" LEFT OUTER JOIN "spree_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 21:43:15.285020') AND ("spree_products".available_on <= '2015-02-02 21:43:15.286902') AND "spree_taxons"."permalink" = 'categories/clothing' LIMIT 8 OFFSET 0) subquery_for_count  (1.2ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL LEFT OUTER JOIN "spree_products_taxons" ON "spree_products_taxons"."product_id" = "spree_products"."id" LEFT OUTER JOIN "spree_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 21:43:15.285020') AND ("spree_products".available_on <= '2015-02-02 21:43:15.286902') AND "spree_taxons"."permalink" = 'categories/clothing' Spree::Product Load (1.0ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL LEFT OUTER JOIN "spree_products_taxons" ON "spree_products_taxons"."product_id" = "spree_products"."id" LEFT OUTER JOIN "spree_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 21:43:15.285020') AND ("spree_products".available_on <= '2015-02-02 21:43:15.286902') AND "spree_taxons"."permalink" = 'categories/clothing' LIMIT 8 OFFSET 0 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (27.2ms) Completed 200 OK in 79ms (Views: 61.2ms | ActiveRecord: 3.1ms) Started GET "/api/taxons/categories/bags" for 127.0.0.1 at 2015-02-02 16:43:20 -0500 Processing by Sprangular::TaxonsController#show as JSON Parameters: {"permalink"=>"categories/bags"} Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."permalink" = 'categories/bags' ORDER BY "spree_taxons"."id" ASC LIMIT 1 Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxons/show.v1.rabl (8.9ms) Completed 200 OK in 38ms (Views: 29.6ms | ActiveRecord: 1.3ms) Started GET "/api/products?page=1&per_page=8&q%5Btaxons_permalink_eq%5D=categories%2Fbags" for 127.0.0.1 at 2015-02-02 16:43:20 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"8", "q"=>{"taxons_permalink_eq"=>"categories/bags"}}  (1.0ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL LEFT OUTER JOIN "spree_products_taxons" ON "spree_products_taxons"."product_id" = "spree_products"."id" LEFT OUTER JOIN "spree_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 21:43:20.517855') AND ("spree_products".available_on <= '2015-02-02 21:43:20.518992') AND "spree_taxons"."permalink" = 'categories/bags' LIMIT 8 OFFSET 0) subquery_for_count  (0.8ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL LEFT OUTER JOIN "spree_products_taxons" ON "spree_products_taxons"."product_id" = "spree_products"."id" LEFT OUTER JOIN "spree_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 21:43:20.517855') AND ("spree_products".available_on <= '2015-02-02 21:43:20.518992') AND "spree_taxons"."permalink" = 'categories/bags' Spree::Product Load (1.0ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL LEFT OUTER JOIN "spree_products_taxons" ON "spree_products_taxons"."product_id" = "spree_products"."id" LEFT OUTER JOIN "spree_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-02 21:43:20.517855') AND ("spree_products".available_on <= '2015-02-02 21:43:20.518992') AND "spree_taxons"."permalink" = 'categories/bags' LIMIT 8 OFFSET 0 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 11, 12) Spree::Classification Load (0.5ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 11, 12) Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 10) Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 11, 12) Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 11, 12) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.4ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 11, 12) Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 11, 12) Spree::ProductProperty Load (0.6ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 11, 12) ORDER BY spree_product_properties.position Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 11, 12) ORDER BY "spree_variants".position ASC Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 11]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 11]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 11]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 12]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 12]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 12]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (1531.3ms) Completed 200 OK in 1565ms (Views: 1535.1ms | ActiveRecord: 16.6ms) Started GET "/" for 127.0.0.1 at 2015-02-03 17:31:16 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.8ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (4449.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (5103.0ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (280.9ms) Spree::Tracker Load (0.3ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.2ms) Completed 200 OK in 6949ms (Views: 6898.3ms | ActiveRecord: 33.3ms) Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 17:31:24 -0500 Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 17:31:25 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:25 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:25 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:25 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:25 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:25 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:25 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:25 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:25 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:25 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:25 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:25 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:25 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:25 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:25 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:25 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:25 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:25 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:25 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:25 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:25 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:26 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:26 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:26 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:26 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:26 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:26 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:26 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:26 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:26 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:26 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:26 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:26 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:26 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:26 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:26 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:26 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:26 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:26 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:26 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:26 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:26 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:27 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:27 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:27 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:27 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:27 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:27 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:27 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:27 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:27 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:27 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:27 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:27 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:27 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:27 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:27 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:27 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:27 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:27 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:27 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:27 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:27 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:27 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:28 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:28 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:28 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:28 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:28 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:28 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:28 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:28 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:28 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:28 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:28 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:28 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:28 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:28 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:28 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:28 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:28 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:28 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:28 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:28 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:28 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:29 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:29 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:29 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:29 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:29 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:29 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:29 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:29 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:29 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:29 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:29 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:29 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:29 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:29 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:29 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:29 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:30 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:30 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:30 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:30 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:30 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:30 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:30 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:30 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:30 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:30 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:30 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:30 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:30 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:30 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:30 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:30 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:30 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:30 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:31 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:31 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:31 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:31 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:31 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:31 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:31 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:31 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:31 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:31 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:31 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:31 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:31 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:31 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:31 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:31 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:31 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:32 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:32 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:32 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:32 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:32 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:32 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:32 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:32 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:32 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:32 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 17:31:32 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 17:31:32 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.5ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 266ms (Views: 252.9ms | ActiveRecord: 0.0ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 17:31:33 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 17:31:33 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.3ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (106.8ms) Completed 200 OK in 150ms (Views: 141.5ms | ActiveRecord: 3.5ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 17:31:33 -0500 Started GET "/api/products?page=1&per_page=8" for 127.0.0.1 at 2015-02-03 17:31:33 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"8"}  (0.8ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 22:31:33.497336') AND ("spree_products".available_on <= '2015-02-03 22:31:33.498194') LIMIT 8 OFFSET 0) subquery_for_count  (0.8ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 22:31:33.497336') AND ("spree_products".available_on <= '2015-02-03 22:31:33.498194') Spree::Product Load (0.9ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 22:31:33.497336') AND ("spree_products".available_on <= '2015-02-03 22:31:33.498194') LIMIT 8 OFFSET 0 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Image Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.3ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::ProductProperty Load (0.8ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY spree_product_properties.position Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_variants".position ASC Spree::Image Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.5ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.6ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.9ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (4678.6ms) Completed 200 OK in 4713ms (Views: 4669.0ms | ActiveRecord: 37.6ms) Started GET "/" for 127.0.0.1 at 2015-02-03 17:32:27 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.5ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (4480.1ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (5006.0ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (191.1ms) Spree::Tracker Load (0.3ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.0ms) Completed 200 OK in 6809ms (Views: 6770.4ms | ActiveRecord: 29.2ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 17:32:34 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 17:32:34 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:34 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:34 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:34 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:34 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:34 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:34 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:34 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:34 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:34 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:34 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:35 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:35 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:35 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:35 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:35 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:35 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:35 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:35 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:35 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:35 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:35 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:35 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:35 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:35 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:35 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:35 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:35 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:36 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:36 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:36 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:36 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:36 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:36 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:36 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:36 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:36 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:36 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:36 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:36 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:36 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:36 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:36 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:36 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:36 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:36 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:36 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:37 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:37 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:37 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:37 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:37 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:37 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:37 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:37 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:37 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:37 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:37 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:37 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:37 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:37 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:37 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:37 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:37 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:37 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:37 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:37 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:37 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:38 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:38 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:38 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:38 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:38 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:38 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:38 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:38 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:38 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:38 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:38 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 17:32:38 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 17:32:39 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (0.8ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 186ms (Views: 183.5ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 17:32:39 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.7ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 22:32:39.506457') AND ("spree_products".available_on <= '2015-02-03 22:32:39.511685') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (1742.8ms) Completed 200 OK in 1795ms (Views: 1758.7ms | ActiveRecord: 18.9ms) Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 17:32:41 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (159.1ms) Completed 200 OK in 186ms (Views: 174.7ms | ActiveRecord: 5.7ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 17:32:41 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 17:32:41 -0500 Started GET "/" for 127.0.0.1 at 2015-02-03 17:34:11 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (4268.5ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (4808.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (230.9ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.4ms) Completed 200 OK in 6602ms (Views: 6567.0ms | ActiveRecord: 27.8ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 17:34:18 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:18 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 17:34:18 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:18 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:18 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:18 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:18 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:18 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:18 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:18 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:18 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:18 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:18 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:18 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:18 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:18 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:19 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:19 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:19 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:19 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:19 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:19 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:19 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:19 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:19 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:19 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:19 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:19 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:19 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:19 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:19 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:19 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:19 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:19 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:19 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:19 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:19 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:19 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:20 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:20 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:20 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:20 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:20 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:20 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:20 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:20 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:20 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:20 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:20 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:20 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:20 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:20 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:20 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:20 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:20 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:20 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:20 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:20 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:20 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:21 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:21 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:21 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:21 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:21 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:21 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:21 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:21 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:21 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:21 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:21 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:21 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:21 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:21 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:21 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:21 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:21 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:21 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:21 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:21 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:22 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 17:34:22 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 17:34:22 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (3.6ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 206ms (Views: 202.4ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 17:34:22 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 22:34:22.652464') AND ("spree_products".available_on <= '2015-02-03 22:34:22.653341') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (1994.1ms) Completed 200 OK in 2042ms (Views: 2014.9ms | ActiveRecord: 20.4ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 17:34:24 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 17:34:24 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 17:34:24 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (194.1ms) Completed 200 OK in 226ms (Views: 213.2ms | ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2015-02-03 17:35:10 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.7ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.4ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (1.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (1.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.5ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (1.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (8254.6ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (9108.8ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (573.1ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.1ms) Completed 200 OK in 13903ms (Views: 13836.6ms | ActiveRecord: 55.0ms) Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 17:35:24 -0500 Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 17:35:24 -0500 Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 17:35:25 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 17:35:25 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:25 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:25 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:25 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:25 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:25 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:25 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:25 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:26 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:26 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:26 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:26 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:26 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:26 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:26 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:26 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:26 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:26 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:26 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:26 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:27 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:27 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:27 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:27 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:27 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:27 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:27 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:27 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:27 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:27 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:27 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:27 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:27 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:27 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:28 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:28 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:28 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:28 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:28 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:28 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:28 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:28 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:28 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:28 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:28 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:28 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:28 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:28 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:29 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:29 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:29 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:29 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:29 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:29 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:29 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:29 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:29 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:29 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:29 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:29 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:29 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:29 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:30 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:30 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:30 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:30 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:30 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:30 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:30 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:30 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:30 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:30 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:30 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:30 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:30 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:30 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:31 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:31 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:31 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 17:35:31 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 17:35:32 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (4.2ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 357ms (Views: 352.4ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 17:35:32 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.9ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 22:35:32.669118') AND ("spree_products".available_on <= '2015-02-03 22:35:32.673774') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2605.7ms) Completed 200 OK in 2697ms (Views: 2650.6ms | ActiveRecord: 27.5ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 17:35:35 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 17:35:35 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (256.8ms) Completed 200 OK in 293ms (Views: 276.1ms | ActiveRecord: 10.0ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 17:35:35 -0500 Started GET "/" for 127.0.0.1 at 2015-02-03 17:36:23 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.1ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.4ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.8ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (1.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.4ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (8259.8ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (9195.2ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (445.1ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.3ms) Completed 200 OK in 14924ms (Views: 14856.8ms | ActiveRecord: 51.8ms) Started GET "/" for 127.0.0.1 at 2015-02-03 17:36:38 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.6ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (114.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (7026.9ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7737.0ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (436.3ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.9ms) Completed 200 OK in 10551ms (Views: 10379.8ms | ActiveRecord: 157.8ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 17:36:50 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:50 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:50 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 17:36:50 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:50 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:50 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:50 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:50 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:51 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:51 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:51 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:51 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:51 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:51 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:51 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:51 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:51 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:51 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:51 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:51 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:51 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:51 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:51 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:52 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:52 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:52 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:52 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:52 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:52 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:52 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:52 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:52 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:52 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:52 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:52 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:52 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:53 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:53 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:53 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:53 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:53 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:53 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:53 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:53 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:53 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:53 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:53 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:53 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:53 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:53 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:53 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:54 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:54 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:54 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:54 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:54 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:54 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:54 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:54 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:54 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:54 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:54 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:54 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:54 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:54 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:55 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:55 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:55 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:55 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:55 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:55 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:55 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:55 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:55 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:55 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:55 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:55 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:55 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:56 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:56 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 17:36:56 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 17:36:57 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.7ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 298ms (Views: 293.4ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 17:36:57 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.9ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 22:36:57.745737') AND ("spree_products".available_on <= '2015-02-03 22:36:57.747748') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2427.6ms) Completed 200 OK in 2517ms (Views: 2478.4ms | ActiveRecord: 26.7ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 17:37:00 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 17:37:00 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.5ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (225.2ms) Completed 200 OK in 254ms (Views: 237.3ms | ActiveRecord: 11.0ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 17:37:00 -0500 Started GET "/" for 127.0.0.1 at 2015-02-03 17:45:01 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6629.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7477.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (324.1ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.9ms) Completed 200 OK in 10352ms (Views: 10297.2ms | ActiveRecord: 42.0ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 17:45:12 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 17:45:12 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:12 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:12 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:12 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:12 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:12 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:12 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:12 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:12 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:13 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:13 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:13 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:13 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:13 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:13 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:13 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:13 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:13 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:13 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:13 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:13 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:13 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:14 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:14 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:14 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:14 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:14 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:14 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:14 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:14 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:14 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:14 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:14 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:14 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:14 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:14 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:14 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:15 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:15 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:15 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:15 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:15 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:15 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:15 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:15 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:15 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:15 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:15 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:15 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:15 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:16 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:16 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:16 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:16 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:16 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:16 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:16 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:16 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:16 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:16 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:16 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:16 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:16 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:16 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:16 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:16 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:17 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:17 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:17 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:17 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:17 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:17 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:17 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:17 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:17 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:17 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:17 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:17 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:17 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 17:45:17 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 17:45:18 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (3.8ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 352ms (Views: 343.7ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 17:45:18 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (2.0ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 22:45:18.824596') AND ("spree_products".available_on <= '2015-02-03 22:45:18.826343') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2636.0ms) Completed 200 OK in 2707ms (Views: 2665.6ms | ActiveRecord: 29.4ms) Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 17:45:21 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.5ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (230.2ms) Completed 200 OK in 262ms (Views: 246.3ms | ActiveRecord: 10.3ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 17:45:21 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 17:45:21 -0500 Started GET "/" for 127.0.0.1 at 2015-02-03 17:46:13 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.5ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (7366.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (8132.1ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (457.1ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.2ms) Completed 200 OK in 12566ms (Views: 12509.0ms | ActiveRecord: 44.6ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 17:46:26 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:26 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 17:46:26 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:26 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:26 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:27 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:27 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:27 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:27 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:27 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:27 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:27 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:27 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:27 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:27 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:27 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:27 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:27 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:27 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:28 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:28 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:28 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:28 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:28 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:28 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:28 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:28 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:28 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:28 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:28 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:28 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:28 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:29 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:29 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:29 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:29 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:29 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:29 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:29 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:29 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:29 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:29 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:29 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:29 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:29 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:29 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:29 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:30 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:30 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:30 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:30 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:30 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:30 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:30 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:30 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:30 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:30 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:30 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:30 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:30 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:31 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:31 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:31 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:31 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:31 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:31 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:31 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:31 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:31 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:31 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:31 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:31 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:31 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:31 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:32 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:32 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:32 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:32 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:32 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:32 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 17:46:32 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 17:46:34 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.8ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 283ms (Views: 277.8ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 17:46:34 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 22:46:34.687749') AND ("spree_products".available_on <= '2015-02-03 22:46:34.689019') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2436.1ms) Completed 200 OK in 2500ms (Views: 2465.6ms | ActiveRecord: 25.5ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 17:46:37 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 17:46:37 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (194.1ms) Completed 200 OK in 223ms (Views: 208.5ms | ActiveRecord: 9.0ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 17:46:37 -0500 Started GET "/" for 127.0.0.1 at 2015-02-03 17:52:05 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6521.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7317.1ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (447.4ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.7ms) Completed 200 OK in 10130ms (Views: 10077.5ms | ActiveRecord: 40.7ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 17:52:16 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:16 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 17:52:17 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:17 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:17 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:17 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:17 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:17 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:17 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:17 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:17 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:17 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:17 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:18 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:18 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:18 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:18 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:18 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:18 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:18 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:18 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:18 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:18 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:18 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:18 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:18 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:18 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:19 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:19 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:19 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:19 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:19 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:19 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:19 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:19 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:19 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:19 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:19 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:19 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:19 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:20 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:20 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:20 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:20 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:20 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:20 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:20 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:20 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:20 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:20 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:20 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:20 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:20 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:20 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:21 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:21 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:21 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:21 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:21 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:21 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:21 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:21 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:21 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:21 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:21 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:21 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:21 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:22 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:22 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:22 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:22 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:22 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:22 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:22 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:22 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:22 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:22 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:22 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:22 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:22 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 17:52:23 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 17:52:24 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.4ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 280ms (Views: 275.7ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 17:52:24 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 22:52:24.693142') AND ("spree_products".available_on <= '2015-02-03 22:52:24.694589') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2599.7ms) Completed 200 OK in 2666ms (Views: 2629.6ms | ActiveRecord: 26.7ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 17:52:27 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 17:52:27 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (215.4ms) Completed 200 OK in 243ms (Views: 228.9ms | ActiveRecord: 8.8ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 17:52:27 -0500 Started GET "/" for 127.0.0.1 at 2015-02-03 17:54:35 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6657.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7409.3ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (422.0ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.5ms) Completed 200 OK in 11692ms (Views: 11637.0ms | ActiveRecord: 40.2ms) Started GET "/" for 127.0.0.1 at 2015-02-03 17:54:46 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6410.1ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7269.5ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (405.4ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.7ms) Completed 200 OK in 10002ms (Views: 9948.4ms | ActiveRecord: 39.4ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 17:54:57 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 17:54:58 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:54:58 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 17:54:58 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 17:54:58 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:54:58 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 17:54:58 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 17:54:58 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 17:54:58 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 17:54:58 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 17:54:58 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 17:54:58 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 17:54:58 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 17:54:59 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 17:54:59 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 17:54:59 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 17:54:59 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 17:54:59 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 17:54:59 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 17:54:59 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 17:54:59 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 17:54:59 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 17:54:59 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 17:54:59 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 17:54:59 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 17:54:59 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 17:54:59 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 17:54:59 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:00 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:00 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:00 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:00 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:00 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:00 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:00 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:00 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:00 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:00 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:00 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:00 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:00 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:01 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:01 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:01 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:01 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:01 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:01 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:01 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:01 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:01 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:01 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:01 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:01 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:01 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:01 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:01 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:01 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:02 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:02 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:02 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:02 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:02 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:02 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:02 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:02 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:02 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:02 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:02 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:02 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:02 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:03 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:03 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:03 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:03 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:03 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:03 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:03 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:03 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:03 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:03 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:03 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 17:55:04 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (2.9ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 348ms (Views: 339.7ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 17:55:04 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.8ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 22:55:05.026521') AND ("spree_products".available_on <= '2015-02-03 22:55:05.028469') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.8ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2731.3ms) Completed 200 OK in 2811ms (Views: 2769.0ms | ActiveRecord: 28.7ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 17:55:07 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 17:55:07 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (256.1ms) Completed 200 OK in 295ms (Views: 278.0ms | ActiveRecord: 9.5ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 17:55:08 -0500 Started GET "/" for 127.0.0.1 at 2015-02-03 17:55:08 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.1ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.5ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (1.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6789.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7945.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (296.5ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.7ms) Completed 200 OK in 10809ms (Views: 10741.4ms | ActiveRecord: 43.2ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 17:55:19 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 17:55:20 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:20 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:20 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:20 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:20 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:20 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:20 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:20 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:20 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:20 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:20 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:20 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:20 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:20 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:21 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:21 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:21 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:21 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:21 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:21 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:21 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:21 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:21 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:21 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:21 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:21 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:21 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:22 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:22 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:22 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:22 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:22 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:22 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:22 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:22 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:22 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:22 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:22 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:22 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:22 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:22 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:22 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:23 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:23 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:23 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:23 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:23 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:23 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:23 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:23 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:23 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:23 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:23 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:23 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:23 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:23 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:24 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:24 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:24 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:24 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:24 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:24 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:24 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:24 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:24 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:24 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:24 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:24 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:24 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:24 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:24 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:25 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:25 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:25 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:25 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:25 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:25 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:25 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:25 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:25 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 17:55:25 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.5ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 329ms (Views: 322.3ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 17:55:26 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.8ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 22:55:26.510969') AND ("spree_products".available_on <= '2015-02-03 22:55:26.514148') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.5ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2580.5ms) Completed 200 OK in 2653ms (Views: 2610.9ms | ActiveRecord: 27.9ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 17:55:29 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 17:55:29 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (2.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (225.9ms) Completed 200 OK in 255ms (Views: 239.5ms | ActiveRecord: 9.1ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 17:55:29 -0500 Started GET "/" for 127.0.0.1 at 2015-02-03 17:55:45 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.1ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.9ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (1.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6883.9ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7670.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (330.5ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.4ms) Completed 200 OK in 12256ms (Views: 12199.2ms | ActiveRecord: 44.8ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 17:55:58 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 17:55:58 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:58 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:58 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:58 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:58 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:58 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:58 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:58 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:58 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:58 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:58 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:58 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:59 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:59 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:59 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:59 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:59 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:59 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:59 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:59 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:59 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:59 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:59 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:59 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 17:55:59 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:00 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:00 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:00 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:00 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:00 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:00 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:00 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:00 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:00 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:00 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:00 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:00 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:00 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:00 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:00 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:01 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:01 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:01 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:01 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:01 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:01 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:01 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:01 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:01 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:01 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:01 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:01 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:01 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:02 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:02 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:02 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:02 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:02 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:02 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:02 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:02 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:02 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:02 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:02 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:02 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:02 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:02 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:03 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:03 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:03 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:03 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:03 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:03 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:03 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:03 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:03 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:03 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:03 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:04 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 17:56:04 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 17:56:05 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.8ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 313ms (Views: 305.0ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 17:56:05 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 22:56:05.728242') AND ("spree_products".available_on <= '2015-02-03 22:56:05.730954') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.8ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.7ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2465.9ms) Completed 200 OK in 2552ms (Views: 2508.1ms | ActiveRecord: 27.4ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 17:56:08 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 17:56:08 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (1.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (264.9ms) Completed 200 OK in 304ms (Views: 285.4ms | ActiveRecord: 11.1ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 17:56:08 -0500 Started GET "/" for 127.0.0.1 at 2015-02-03 17:59:16 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.4ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6603.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7405.0ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (410.6ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.4ms) Completed 200 OK in 11867ms (Views: 11813.7ms | ActiveRecord: 40.3ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 17:59:29 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 17:59:29 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:29 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:29 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:29 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:29 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:29 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:30 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:30 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:30 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:30 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:30 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:30 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:30 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:30 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:30 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:30 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:30 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:30 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:31 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:31 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:31 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:31 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:31 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:31 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:31 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:31 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:31 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:31 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:31 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:31 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:31 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:31 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:32 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:32 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:32 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:32 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:32 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:32 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:32 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:32 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:32 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:32 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:32 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:32 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:33 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:33 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:33 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:33 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:33 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:33 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:33 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:33 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:33 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:33 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:33 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:33 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:33 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:33 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:33 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:34 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:34 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:34 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:34 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:34 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:34 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:34 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:34 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:34 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:34 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:34 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:34 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:34 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:35 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:35 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:35 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:35 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:35 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:35 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:35 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 17:59:35 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 17:59:36 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (2.2ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 350ms (Views: 338.9ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 17:59:36 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (1.8ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 22:59:37.000384') AND ("spree_products".available_on <= '2015-02-03 22:59:37.004273') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.6ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2650.2ms) Completed 200 OK in 2728ms (Views: 2680.3ms | ActiveRecord: 29.5ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 17:59:39 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 17:59:39 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 17:59:39 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.7ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (276.3ms) Completed 200 OK in 318ms (Views: 299.1ms | ActiveRecord: 9.5ms) Started GET "/" for 127.0.0.1 at 2015-02-03 18:00:12 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6455.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7251.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (296.6ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.7ms) Completed 200 OK in 10014ms (Views: 9959.0ms | ActiveRecord: 40.0ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 18:00:23 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 18:00:23 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:23 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:23 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:23 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:23 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:23 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:23 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:23 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:23 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:23 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:24 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:24 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:24 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:24 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:24 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:24 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:24 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:24 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:24 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:24 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:24 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:24 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:24 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:25 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:25 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:25 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:25 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:25 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:25 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:25 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:25 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:25 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:25 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:25 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:25 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:25 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:25 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:26 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:26 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:26 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:26 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:26 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:26 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:26 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:26 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:26 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:26 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:26 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:26 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:26 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:27 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:27 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:27 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:27 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:27 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:27 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:27 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:27 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:27 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:27 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:27 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:28 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:28 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:28 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:28 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:28 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:28 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:28 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:28 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:28 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:28 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:28 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:28 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:28 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:28 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:28 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:29 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:29 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:29 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 18:00:29 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 18:00:30 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (2.4ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 313ms (Views: 308.3ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 18:00:30 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.9ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 23:00:30.670176') AND ("spree_products".available_on <= '2015-02-03 23:00:30.672439') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.4ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (1.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (1.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2628.1ms) Completed 200 OK in 2728ms (Views: 2684.2ms | ActiveRecord: 30.8ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 18:00:33 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 18:00:33 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.8ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (241.0ms) Completed 200 OK in 276ms (Views: 258.3ms | ActiveRecord: 9.9ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 18:00:33 -0500 Started GET "/" for 127.0.0.1 at 2015-02-03 18:01:38 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6435.0ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7223.2ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (293.7ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.9ms) Completed 200 OK in 10004ms (Views: 9952.4ms | ActiveRecord: 38.1ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 18:01:49 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:49 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 18:01:49 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:49 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:49 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:50 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:50 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:50 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:50 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:50 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:50 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:50 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:50 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:50 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:50 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:50 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:50 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:50 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:50 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:50 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:51 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:51 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:51 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:51 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:51 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:51 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:51 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:51 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:51 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:51 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:51 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:51 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:51 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:52 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:52 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:52 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:52 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:52 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:52 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:52 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:52 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:52 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:52 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:52 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:52 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:52 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:52 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:52 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:52 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:53 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:53 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:53 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:53 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:53 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:53 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:53 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:53 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:53 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:53 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:53 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:53 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:54 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:54 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:54 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:54 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:54 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:54 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:54 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:54 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:54 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:54 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:54 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:54 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:54 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:54 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:54 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:55 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:55 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:55 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:55 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 18:01:55 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 18:01:56 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.3ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 278ms (Views: 272.3ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 18:01:56 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 23:01:56.663474') AND ("spree_products".available_on <= '2015-02-03 23:01:56.664678') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (1.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2591.7ms) Completed 200 OK in 2656ms (Views: 2620.8ms | ActiveRecord: 26.2ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 18:01:59 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 18:01:59 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 18:01:59 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (263.3ms) Completed 200 OK in 306ms (Views: 285.5ms | ActiveRecord: 11.5ms) Started GET "/" for 127.0.0.1 at 2015-02-03 18:03:24 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.5ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (7160.6ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7992.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (342.0ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.9ms) Completed 200 OK in 11291ms (Views: 11234.9ms | ActiveRecord: 43.6ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 18:03:36 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 18:03:36 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:36 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:36 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:36 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:36 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:36 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:37 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:37 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:37 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:37 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:37 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:37 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:37 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:37 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:37 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:37 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:37 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:37 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:37 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:38 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:38 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:38 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:38 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:38 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:38 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:38 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:38 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:38 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:38 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:38 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:38 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:38 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:38 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:38 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:38 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:39 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:39 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:39 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:39 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:39 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:39 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:39 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:39 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:39 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:39 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:39 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:39 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:39 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:40 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:40 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:40 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:40 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:40 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:40 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:40 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:40 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:40 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:40 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:40 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:40 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:40 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:40 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:40 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:41 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:41 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:41 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:41 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:41 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:41 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:41 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:41 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:41 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:41 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:41 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:41 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:41 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:41 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:41 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:41 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 18:03:42 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 18:03:43 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.8ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 284ms (Views: 278.7ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 18:03:43 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 23:03:43.656032') AND ("spree_products".available_on <= '2015-02-03 23:03:43.657134') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2351.0ms) Completed 200 OK in 2415ms (Views: 2381.9ms | ActiveRecord: 24.4ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 18:03:46 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 18:03:46 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (165.9ms) Completed 200 OK in 193ms (Views: 180.8ms | ActiveRecord: 7.0ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 18:03:46 -0500 Started GET "/" for 127.0.0.1 at 2015-02-03 18:04:33 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6497.8ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7284.5ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (310.9ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.7ms) Completed 200 OK in 10049ms (Views: 9995.9ms | ActiveRecord: 41.4ms) Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 18:04:44 -0500 Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 18:04:44 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:44 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:44 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:44 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:44 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:44 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:44 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:44 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:45 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:45 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:45 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:45 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:45 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:45 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:45 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:45 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:45 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:45 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:45 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:45 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:46 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:46 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:46 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:46 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:46 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:46 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:46 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:46 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:46 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:46 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:46 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:46 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:46 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:46 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:46 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:46 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:47 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:47 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:47 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:47 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:47 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:47 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:47 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:47 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:47 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:47 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:47 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:47 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:47 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:48 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:48 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:48 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:48 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:48 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:48 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:48 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:48 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:48 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:48 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:48 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:48 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:48 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:48 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:48 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:48 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:49 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:49 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:49 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:49 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:49 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:49 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:49 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:49 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:49 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:49 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:49 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:49 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:49 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:50 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 18:04:50 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 18:04:50 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (2.7ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 355ms (Views: 348.7ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 18:04:50 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 23:04:50.989878') AND ("spree_products".available_on <= '2015-02-03 23:04:50.991918') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.8ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2505.6ms) Completed 200 OK in 2600ms (Views: 2554.1ms | ActiveRecord: 27.5ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 18:04:53 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 18:04:53 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (186.8ms) Completed 200 OK in 219ms (Views: 204.2ms | ActiveRecord: 8.0ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 18:04:53 -0500 Started GET "/" for 127.0.0.1 at 2015-02-03 18:05:30 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6573.5ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7378.9ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (413.9ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.6ms) Completed 200 OK in 10079ms (Views: 10025.9ms | ActiveRecord: 40.0ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 18:05:41 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:41 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:41 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 18:05:41 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:41 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:41 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:41 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:41 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:41 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:42 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:42 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:42 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:42 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:42 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:42 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:42 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:42 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:42 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:42 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:42 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:42 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:42 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:42 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:43 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:43 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:43 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:43 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:43 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:43 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:43 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:43 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:43 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:43 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:43 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:43 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:43 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:43 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:43 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:43 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:44 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:44 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:44 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:44 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:44 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:44 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:44 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:44 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:44 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:44 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:44 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:44 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:44 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:45 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:45 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:45 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:45 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:45 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:45 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:45 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:45 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:45 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:45 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:45 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:45 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:45 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:45 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:45 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:45 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:46 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:46 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:46 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:46 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:46 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:46 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:46 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:46 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:46 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:46 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:46 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:46 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 18:05:46 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 18:05:47 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.7ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 290ms (Views: 285.3ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 18:05:47 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.9ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 23:05:47.711945') AND ("spree_products".available_on <= '2015-02-03 23:05:47.713929') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.6ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2458.8ms) Completed 200 OK in 2555ms (Views: 2514.0ms | ActiveRecord: 25.6ms) Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 18:05:50 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (194.2ms) Completed 200 OK in 224ms (Views: 210.9ms | ActiveRecord: 7.2ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 18:05:50 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 18:05:50 -0500 Started PUT "/api/cart/update_variant" for 127.0.0.1 at 2015-02-03 18:06:02 -0500 Processing by Sprangular::CartsController#update_variant as JSON Parameters: {"variant_id"=>"17", "quantity"=>"2"} Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]]  (0.4ms) SELECT "spree_line_items"."id" FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]]  (0.1ms) begin transaction Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_inventory_units" WHERE "spree_inventory_units"."line_item_id" = ? [["line_item_id", 18]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Order Exists (0.4ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Binary data inserted for `string` type on column `last_ip_address` SQL (8.5ms) UPDATE "spree_orders" SET "last_ip_address" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["last_ip_address", "127.0.0.1"], ["updated_at", "2015-02-03 23:06:02.573636"]] SQL (0.6ms) UPDATE "spree_line_items" SET "quantity" = ?, "updated_at" = ? WHERE "spree_line_items"."id" = 18 [["quantity", 2], ["updated_at", "2015-02-03 23:06:02.586896"]] SQL (0.4ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-03 23:06:02.589884' WHERE "spree_orders"."id" = 6 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] SQL (0.4ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-03 23:06:02.620061' WHERE "spree_line_items"."id" = 18  (26.6ms) commit transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.2ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order'))  (0.2ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.2ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (115.0ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 79.95999999999999, "item_count" = 4, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 79.95999999999999, "updated_at" = '2015-02-03 23:06:02.697157' WHERE "spree_orders"."id" = 6 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::Promotion Load (0.9ms) SELECT DISTINCT "spree_promotions".* FROM "spree_promotions" LEFT OUTER JOIN "spree_orders_promotions" ON "spree_promotions"."id" = "spree_orders_promotions"."promotion_id" WHERE (starts_at IS NULL OR starts_at < '2015-02-03 23:06:02.818651') AND (expires_at IS NULL OR expires_at > '2015-02-03 23:06:02.819413') AND (("spree_promotions"."code" IS NULL AND "spree_promotions"."path" IS NULL OR "spree_orders_promotions"."order_id" = 6)) Spree::Shipment Exists (0.2ms) SELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? LIMIT 1 [["order_id", 6]]  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.2ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order'))  (0.2ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.2ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.4ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (33.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 79.95999999999999, "item_count" = 4, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 79.95999999999999, "updated_at" = '2015-02-03 23:06:02.865247' WHERE "spree_orders"."id" = 6 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]]  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6947.0ms) Completed 200 OK in 7364ms (Views: 6926.0ms | ActiveRecord: 243.5ms) Started GET "/" for 127.0.0.1 at 2015-02-03 18:07:40 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.1ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6583.9ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7415.6ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (464.5ms) Spree::Tracker Load (0.5ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.0ms) Completed 200 OK in 10390ms (Views: 10336.3ms | ActiveRecord: 40.2ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 18:07:52 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:52 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 18:07:52 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:52 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:52 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:52 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:52 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:52 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:52 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:52 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:53 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:53 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:53 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:53 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:53 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:53 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:53 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:53 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:53 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:53 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:53 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:53 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:53 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:54 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:54 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:54 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:54 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:54 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:54 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:54 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:54 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:54 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:54 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:54 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:54 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:54 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:54 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:55 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:55 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:55 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:55 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:55 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:55 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:55 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:55 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:55 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:55 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:55 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:55 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:55 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:55 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:55 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:55 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:56 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:56 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:56 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:56 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:56 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:56 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:56 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:56 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:56 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:56 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:56 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:56 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:56 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:56 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:57 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:57 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:57 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:57 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:57 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:57 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:57 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:57 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:57 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:57 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:57 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:57 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:57 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 18:07:57 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 18:07:58 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.6ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 323ms (Views: 316.3ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 18:07:58 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 23:07:58.766837') AND ("spree_products".available_on <= '2015-02-03 23:07:58.768539') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2550.0ms) Completed 200 OK in 2643ms (Views: 2593.4ms | ActiveRecord: 28.1ms) Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 18:08:01 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.8ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (195.4ms) Completed 200 OK in 228ms (Views: 213.3ms | ActiveRecord: 8.9ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 18:08:01 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 18:08:01 -0500 Started GET "/" for 127.0.0.1 at 2015-02-03 18:11:58 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (1.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.9ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6917.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7730.8ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (313.9ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.3ms) Completed 200 OK in 12784ms (Views: 12723.9ms | ActiveRecord: 44.8ms) Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 18:12:12 -0500 Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 18:12:12 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:12 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:12 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:12 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:12 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:12 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:12 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:13 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:13 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:13 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:13 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:13 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:13 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:13 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:13 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:13 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:13 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:13 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:13 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:13 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:13 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:13 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:14 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:14 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:14 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:14 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:14 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:14 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:14 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:14 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:14 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:14 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:14 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:14 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:14 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:15 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:15 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:15 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:15 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:15 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:15 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:15 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:15 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:15 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:15 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:15 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:15 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:15 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:15 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:15 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:16 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:16 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:16 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:16 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:16 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:16 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:16 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:16 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:16 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:16 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:16 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:16 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:16 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:16 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:17 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:17 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:17 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:17 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:17 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:17 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:17 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:17 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:17 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:17 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:17 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:17 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:17 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:18 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:18 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 18:12:18 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 18:12:18 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.5ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 295ms (Views: 288.9ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 18:12:19 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 23:12:19.457573') AND ("spree_products".available_on <= '2015-02-03 23:12:19.460798') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2442.9ms) Completed 200 OK in 2528ms (Views: 2484.3ms | ActiveRecord: 27.0ms) Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 18:12:21 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (170.1ms) Completed 200 OK in 200ms (Views: 186.8ms | ActiveRecord: 7.1ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 18:12:22 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 18:12:22 -0500 Started GET "/" for 127.0.0.1 at 2015-02-03 18:15:08 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6909.0ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7757.5ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (463.3ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.1ms) Completed 200 OK in 12498ms (Views: 12441.2ms | ActiveRecord: 43.8ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 18:15:22 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:22 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:22 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:22 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 18:15:22 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:22 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:22 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:22 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:22 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:23 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:23 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:23 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:23 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:23 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:23 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:23 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:23 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:23 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:23 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:23 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:23 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:23 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:23 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:23 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:24 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:24 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:24 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:24 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:24 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:24 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:24 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:24 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:24 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:24 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:24 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:24 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:24 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:24 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:24 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:25 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:25 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:25 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:25 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:25 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:25 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:25 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:25 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:25 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:25 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:25 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:25 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:25 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:26 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:26 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:26 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:26 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:26 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:26 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:26 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:26 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:26 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:26 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:26 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:26 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:26 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:26 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:26 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:26 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:27 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:27 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:27 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:27 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:27 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:27 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:27 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:27 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:27 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:27 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:27 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:28 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 18:15:28 -0500 Started GET "/" for 127.0.0.1 at 2015-02-03 18:17:39 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.7ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.5ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (1.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6887.8ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7751.0ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (498.9ms) Spree::Tracker Load (1.5ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (9.1ms) Completed 200 OK in 12917ms (Views: 12859.2ms | ActiveRecord: 43.9ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 18:17:53 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 18:17:53 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:53 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:53 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:53 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:53 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:53 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:53 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:54 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:54 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:54 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:54 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:54 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:54 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:54 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:54 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:54 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:54 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:55 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:55 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:55 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:55 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:55 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:55 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:55 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:55 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:55 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:55 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:55 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:55 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:56 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:56 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:56 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:56 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:56 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:56 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:56 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:56 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:56 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:57 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:57 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:57 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:57 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:57 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:57 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:57 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:57 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:57 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:57 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:57 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:57 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:57 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:58 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:58 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:58 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:58 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:58 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:58 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:58 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:58 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:58 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:58 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:58 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:58 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:59 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:59 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:59 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:59 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:59 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:59 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:59 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:59 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:59 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:59 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:59 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:59 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:59 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 18:17:59 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 18:18:00 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 18:18:00 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 18:18:00 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 18:18:01 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.8ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 395ms (Views: 386.4ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 18:18:01 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 23:18:01.748361') AND ("spree_products".available_on <= '2015-02-03 23:18:01.750296') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (1.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2901.5ms) Completed 200 OK in 2989ms (Views: 2945.6ms | ActiveRecord: 29.9ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 18:18:04 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 18:18:04 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (194.7ms) Completed 200 OK in 225ms (Views: 212.7ms | ActiveRecord: 7.4ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 18:18:05 -0500 Started GET "/" for 127.0.0.1 at 2015-02-03 18:19:23 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6600.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7439.3ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (323.7ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.6ms) Completed 200 OK in 10270ms (Views: 10214.8ms | ActiveRecord: 40.7ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 18:19:34 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 18:19:34 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:35 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:35 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:35 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:35 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:35 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:35 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:35 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:35 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:35 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:35 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:36 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:36 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:36 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:36 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:36 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:36 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:36 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:36 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:36 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:36 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:36 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:36 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:37 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:37 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:37 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:37 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:37 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:37 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:37 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:37 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:37 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:37 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:37 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:37 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:37 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:38 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:38 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:38 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:38 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:38 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:38 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:38 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:38 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:38 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:38 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:38 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:39 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:39 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:39 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:39 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:39 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:39 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:39 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:39 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:39 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:39 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:39 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:39 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:39 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:40 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:40 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:40 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:40 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:40 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:40 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:40 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:40 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:40 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:40 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:40 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:40 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:41 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:41 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:41 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:41 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:41 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:41 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:41 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 18:19:41 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 18:19:41 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.7ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 337ms (Views: 323.4ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 18:19:42 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 23:19:42.342508') AND ("spree_products".available_on <= '2015-02-03 23:19:42.343982') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2563.0ms) Completed 200 OK in 2645ms (Views: 2606.7ms | ActiveRecord: 26.7ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 18:19:44 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 18:19:45 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 18:19:45 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.5ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (185.0ms) Completed 200 OK in 218ms (Views: 205.5ms | ActiveRecord: 7.5ms) Started GET "/" for 127.0.0.1 at 2015-02-03 18:20:23 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.7ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6522.5ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7219.5ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (434.4ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.6ms) Completed 200 OK in 10071ms (Views: 10015.4ms | ActiveRecord: 41.1ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 18:20:34 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:34 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:34 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 18:20:34 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:34 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:34 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:35 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:35 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:35 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:35 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:35 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:35 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:35 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:35 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:35 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:35 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:35 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:35 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:35 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:36 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:36 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:36 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:36 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:36 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:36 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:36 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:36 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:36 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:36 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:36 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:37 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:37 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:37 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:37 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:37 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:37 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:37 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:37 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:37 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:37 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:37 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:37 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:38 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:38 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:38 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:38 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:38 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:38 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:38 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:38 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:38 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:38 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:38 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:38 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:38 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:39 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:39 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:39 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:39 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:39 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:39 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:39 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:39 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:39 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:39 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:39 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:40 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:40 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:40 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:40 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:40 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:40 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:40 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:40 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:40 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:40 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:40 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:40 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:40 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:40 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 18:20:40 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 18:20:41 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.7ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 349ms (Views: 342.0ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 18:20:41 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 23:20:41.807849') AND ("spree_products".available_on <= '2015-02-03 23:20:41.809401') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (117.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2630.0ms) Completed 200 OK in 2711ms (Views: 2553.7ms | ActiveRecord: 145.0ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 18:20:44 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 18:20:44 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 18:20:44 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (187.8ms) Completed 200 OK in 225ms (Views: 210.2ms | ActiveRecord: 7.4ms) Started GET "/" for 127.0.0.1 at 2015-02-03 18:21:13 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.8ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.7ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6766.2ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7601.1ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (331.0ms) Spree::Tracker Load (0.5ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.4ms) Completed 200 OK in 12149ms (Views: 12092.3ms | ActiveRecord: 42.4ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 18:21:26 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:27 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:27 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:27 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 18:21:27 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:27 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:27 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:27 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:27 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:27 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:27 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:27 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:27 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:28 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:28 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:28 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:28 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:28 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:28 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:28 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:28 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:28 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:28 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:28 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:29 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:29 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:29 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:29 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:29 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:29 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:29 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:29 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:29 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:29 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:29 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:29 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:29 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:30 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:30 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:30 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:30 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:30 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:30 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:30 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:30 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:30 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:30 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:30 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:30 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:31 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:31 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:31 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:31 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:31 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:31 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:31 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:31 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:31 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:31 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:32 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:32 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:32 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:32 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:32 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:32 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:32 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:32 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:32 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:32 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:32 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:32 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:32 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:32 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:32 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:33 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:33 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:33 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:33 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:33 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:33 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 18:21:33 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 18:21:34 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.9ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 339ms (Views: 333.8ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 18:21:34 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (1.1ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 23:21:34.972336') AND ("spree_products".available_on <= '2015-02-03 23:21:34.974428') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2559.8ms) Completed 200 OK in 2651ms (Views: 2604.5ms | ActiveRecord: 27.1ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 18:21:37 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 18:21:37 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (224.6ms) Completed 200 OK in 258ms (Views: 240.6ms | ActiveRecord: 9.3ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 18:21:38 -0500 Started GET "/" for 127.0.0.1 at 2015-02-03 18:26:50 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.1ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.7ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.5ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6649.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7505.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (450.2ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.4ms) Completed 200 OK in 11886ms (Views: 11829.2ms | ActiveRecord: 42.2ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 18:27:03 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 18:27:03 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:03 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:03 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:03 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:03 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:03 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:03 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:03 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:03 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:04 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:04 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:04 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:04 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:04 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:04 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:04 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:04 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:04 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:04 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:04 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:04 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:04 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:04 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:04 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:05 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:05 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:05 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:05 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:05 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:05 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:05 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:05 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:05 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:05 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:05 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:05 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:05 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:06 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:06 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:06 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:06 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:06 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:06 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:06 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:06 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:06 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:06 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:06 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:06 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:06 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:06 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:07 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:07 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:07 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:07 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:07 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:07 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:07 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:07 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:07 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:07 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:07 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:07 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:07 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:07 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:07 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:08 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:08 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:08 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:08 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:08 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:08 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:08 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:08 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:08 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:08 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:08 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:08 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:09 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 18:27:09 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 18:27:10 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.4ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 336ms (Views: 329.2ms | ActiveRecord: 0.0ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 18:27:10 -0500 Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 18:27:10 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.9ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 23:27:10.562265') AND ("spree_products".available_on <= '2015-02-03 23:27:10.563662') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2469.9ms) Completed 200 OK in 2541ms (Views: 2505.1ms | ActiveRecord: 27.1ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 18:27:13 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 18:27:13 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (1.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (213.7ms) Completed 200 OK in 243ms (Views: 226.7ms | ActiveRecord: 9.6ms) Started GET "/" for 127.0.0.1 at 2015-02-03 18:28:10 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.7ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6735.3ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7588.0ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (334.3ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.2ms) Completed 200 OK in 12088ms (Views: 12029.4ms | ActiveRecord: 43.6ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 18:28:23 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 18:28:24 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:24 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:24 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:24 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:24 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:24 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:24 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:24 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:24 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:24 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:24 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:24 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:24 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:25 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:25 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:25 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:25 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:25 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:25 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:25 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:25 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:25 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:25 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:25 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:25 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:26 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:26 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:26 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:26 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:26 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:26 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:26 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:26 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:26 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:26 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:26 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:26 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:26 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:26 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:26 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:27 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:27 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:27 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:27 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:27 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:27 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:27 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:27 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:27 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:27 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:27 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:27 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:27 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:27 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:28 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:28 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:28 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:28 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:28 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:28 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:28 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:28 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:28 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:28 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:28 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:28 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:28 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:28 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:28 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:29 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:29 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:29 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:29 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:29 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:29 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:29 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:29 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:29 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:30 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 18:28:30 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 18:28:30 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (2.1ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 346ms (Views: 340.7ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 18:28:31 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.9ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 23:28:31.220158') AND ("spree_products".available_on <= '2015-02-03 23:28:31.221794') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2649.6ms) Completed 200 OK in 2724ms (Views: 2683.2ms | ActiveRecord: 27.1ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 18:28:33 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 18:28:34 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (225.1ms) Completed 200 OK in 257ms (Views: 241.6ms | ActiveRecord: 9.3ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 18:28:34 -0500 Started GET "/" for 127.0.0.1 at 2015-02-03 18:30:31 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.1ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (1.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (1.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (7123.1ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7950.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (347.6ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.3ms) Completed 200 OK in 13119ms (Views: 13059.8ms | ActiveRecord: 45.3ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 18:30:45 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 18:30:45 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:45 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:45 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:45 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:45 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:45 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:45 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:45 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:46 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:46 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:46 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:46 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:46 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:46 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:46 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:46 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:46 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:46 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:46 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:47 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:47 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:47 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:47 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:47 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:47 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:47 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:47 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:47 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:47 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:48 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:48 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:48 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:48 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:48 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:48 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:48 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:48 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:48 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:48 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:48 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:49 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:49 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:49 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:49 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:49 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:49 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:49 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:49 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:49 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:49 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:49 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:49 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:49 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:50 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:50 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:50 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:50 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:50 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:50 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:50 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:50 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:50 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:51 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:51 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:51 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:51 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:51 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:51 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:51 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:51 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:51 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:51 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:51 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:51 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:52 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:52 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:52 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:52 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:52 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 18:30:52 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 18:30:53 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.7ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 370ms (Views: 363.6ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 18:30:54 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.9ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 23:30:54.216267') AND ("spree_products".available_on <= '2015-02-03 23:30:54.218166') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (3040.3ms) Completed 200 OK in 3148ms (Views: 3103.8ms | ActiveRecord: 31.7ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 18:30:57 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 18:30:57 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 18:30:57 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (229.0ms) Completed 200 OK in 268ms (Views: 250.3ms | ActiveRecord: 9.8ms) Started GET "/" for 127.0.0.1 at 2015-02-03 18:32:54 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6656.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7466.3ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (419.9ms) Spree::Tracker Load (0.5ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (4.4ms) Completed 200 OK in 11798ms (Views: 11742.8ms | ActiveRecord: 41.9ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 18:33:06 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 18:33:06 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:06 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:07 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:07 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:07 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:07 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:07 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:07 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:07 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:07 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:07 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:07 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:07 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:07 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:08 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:08 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:08 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:08 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:08 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:08 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:08 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:08 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:08 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:08 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:08 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:08 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:08 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:08 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:09 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:09 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:09 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:09 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:09 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:09 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:09 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:09 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:09 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:09 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:09 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:09 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:09 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:09 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:10 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:10 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:10 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:10 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:10 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:10 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:10 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:10 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:10 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:10 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:10 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:10 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:10 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:10 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:10 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:11 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:11 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:11 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:11 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:11 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:11 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:11 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:11 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:11 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:11 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:11 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:11 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:11 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:11 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:12 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:12 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:12 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:12 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:12 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:12 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:12 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:12 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:12 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 18:33:13 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (3.6ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 338ms (Views: 330.5ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 18:33:13 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 23:33:14.044631') AND ("spree_products".available_on <= '2015-02-03 23:33:14.046908') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2687.7ms) Completed 200 OK in 2796ms (Views: 2751.0ms | ActiveRecord: 29.0ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 18:33:16 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 18:33:16 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (238.7ms) Completed 200 OK in 279ms (Views: 261.1ms | ActiveRecord: 9.6ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 18:33:17 -0500 Started GET "/" for 127.0.0.1 at 2015-02-03 18:33:46 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6588.9ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7477.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (291.1ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.6ms) Completed 200 OK in 10192ms (Views: 10137.5ms | ActiveRecord: 38.7ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 18:33:57 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 18:33:57 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:57 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:57 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:57 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:57 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:58 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:58 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:58 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:58 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:58 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:58 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:58 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:58 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:58 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:58 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:58 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:58 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:58 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:59 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:59 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:59 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:59 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:59 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:59 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:59 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:59 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:59 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:59 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:59 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:59 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:59 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:59 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:33:59 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:00 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:00 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:00 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:00 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:00 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:00 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:00 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:00 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:00 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:00 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:00 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:00 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:00 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:01 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:01 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:01 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:01 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:01 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:01 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:01 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:01 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:01 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:01 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:01 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:01 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:01 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:01 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:02 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:02 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:02 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:02 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:02 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:02 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:02 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:02 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:02 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:02 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:02 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:02 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:02 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:03 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:03 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:03 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:03 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:03 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:03 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 18:34:03 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 18:34:03 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (2.6ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 380ms (Views: 375.8ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 18:34:04 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 23:34:04.331849') AND ("spree_products".available_on <= '2015-02-03 23:34:04.333136') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2629.3ms) Completed 200 OK in 2714ms (Views: 2675.8ms | ActiveRecord: 26.3ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 18:34:07 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 18:34:07 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 18:34:07 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (181.3ms) Completed 200 OK in 217ms (Views: 202.7ms | ActiveRecord: 7.2ms) Started GET "/" for 127.0.0.1 at 2015-02-03 18:34:38 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.6ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.4ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.5ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (1.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (1.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (7031.9ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7842.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (426.4ms) Spree::Tracker Load (0.5ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.6ms) Completed 200 OK in 12193ms (Views: 12135.9ms | ActiveRecord: 45.2ms) Started GET "/" for 127.0.0.1 at 2015-02-03 18:34:50 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.5ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6897.8ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7759.8ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (483.8ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.7ms) Completed 200 OK in 10798ms (Views: 10741.6ms | ActiveRecord: 43.5ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 18:35:02 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 18:35:02 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:02 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:02 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:02 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:03 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:03 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:03 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:03 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:03 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:03 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:03 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:03 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:03 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:03 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:03 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:03 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:04 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:04 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:04 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:04 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:04 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:04 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:04 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:04 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:04 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:04 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:04 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:04 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:04 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:04 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:05 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:05 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:05 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:05 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:05 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:05 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:05 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:05 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:05 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:05 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:05 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:05 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:05 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:05 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:06 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:06 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:06 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:06 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:06 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:06 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:06 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:06 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:06 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:06 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:06 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:06 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:06 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:06 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:06 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:07 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:07 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:07 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:07 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:07 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:07 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:07 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:07 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:07 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:07 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:07 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:07 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:07 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:08 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:08 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:08 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:08 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:08 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:08 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:08 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:08 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 18:35:09 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (2.0ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 377ms (Views: 370.0ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 18:35:09 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 23:35:10.019081') AND ("spree_products".available_on <= '2015-02-03 23:35:10.020553') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.9ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.6ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2548.8ms) Completed 200 OK in 2618ms (Views: 2581.2ms | ActiveRecord: 27.2ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 18:35:12 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 18:35:12 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (195.5ms) Completed 200 OK in 227ms (Views: 214.6ms | ActiveRecord: 7.3ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 18:35:13 -0500 Started GET "/" for 127.0.0.1 at 2015-02-03 18:35:14 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.7ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.1ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (1.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] [36mCACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6888.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7745.9ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (306.9ms) Spree::Tracker Load (0.5ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.6ms) Completed 200 OK in 12215ms (Views: 12149.1ms | ActiveRecord: 46.1ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 18:35:27 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 18:35:27 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:27 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:27 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:27 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:27 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:27 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:27 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:27 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:27 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:28 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:28 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:28 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:28 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:28 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:28 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:28 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:28 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:28 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:28 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:28 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:28 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:28 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:29 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:29 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:29 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:29 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:29 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:29 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:29 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:29 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:29 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:29 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:29 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:29 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:29 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:30 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:30 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:30 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:30 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:30 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:30 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:30 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:30 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:30 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:30 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:30 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:30 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:30 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:31 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:31 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:31 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:31 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:31 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:31 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:31 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:31 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:31 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:31 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:31 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:31 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:31 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:31 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:31 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:31 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:32 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:32 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:32 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:32 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:32 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:32 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:32 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:32 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:32 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:32 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:32 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:32 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:32 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:33 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:33 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 18:35:33 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 18:35:34 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (4.6ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 354ms (Views: 348.1ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 18:35:34 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 23:35:34.601590') AND ("spree_products".available_on <= '2015-02-03 23:35:34.605602') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.5ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2718.6ms) Completed 200 OK in 2805ms (Views: 2753.6ms | ActiveRecord: 29.3ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 18:35:37 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 18:35:37 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (210.3ms) Completed 200 OK in 241ms (Views: 224.9ms | ActiveRecord: 8.5ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 18:35:37 -0500 Started GET "/" for 127.0.0.1 at 2015-02-03 18:36:18 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.6ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6587.2ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7381.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (312.5ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.8ms) Completed 200 OK in 10318ms (Views: 10263.5ms | ActiveRecord: 40.2ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 18:36:29 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 18:36:30 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:30 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:30 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:30 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:30 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:30 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:30 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:30 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:30 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:30 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:30 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:31 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:31 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:31 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:31 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:31 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:31 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:31 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:31 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:31 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:32 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:32 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:32 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:32 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:32 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:32 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:32 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:32 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:32 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:32 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:32 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:32 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:32 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:33 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:33 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:33 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:33 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:33 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:33 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:33 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:33 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:33 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:33 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:33 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:33 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:33 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:34 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:34 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:34 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:34 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:34 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:34 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:34 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:34 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:34 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:34 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:34 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:35 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:35 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:35 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:35 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:35 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:35 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:35 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:35 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:35 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:35 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:35 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:35 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:35 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:35 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:36 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:36 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:36 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:36 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:36 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:36 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:36 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:36 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 18:36:36 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 18:36:36 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.3ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 316ms (Views: 309.5ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 18:36:37 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 23:36:37.485586') AND ("spree_products".available_on <= '2015-02-03 23:36:37.486777') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2541.9ms) Completed 200 OK in 2611ms (Views: 2575.7ms | ActiveRecord: 26.7ms) Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 18:36:40 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.5ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (203.9ms) Completed 200 OK in 238ms (Views: 221.4ms | ActiveRecord: 8.6ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 18:36:40 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 18:36:40 -0500 Started GET "/" for 127.0.0.1 at 2015-02-03 18:38:24 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6591.2ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7400.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (295.3ms) Spree::Tracker Load (0.5ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (4.1ms) Completed 200 OK in 11925ms (Views: 11870.4ms | ActiveRecord: 40.4ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 18:38:36 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 18:38:36 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:37 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:37 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:37 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:37 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:37 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:37 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:37 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:37 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:37 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:37 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:37 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:37 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:38 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:38 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:38 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:38 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:38 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:38 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:38 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:38 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:38 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:38 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:38 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:38 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:38 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:39 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:39 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:39 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:39 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:39 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:39 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:39 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:39 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:39 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:39 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:39 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:39 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:39 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:39 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:39 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:39 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:40 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:40 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:40 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:40 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:40 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:40 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:40 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:40 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:40 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:40 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:40 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:40 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:40 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:41 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:41 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:41 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:41 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:41 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:41 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:41 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:41 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:41 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:41 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:41 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:41 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:41 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:41 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:41 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:41 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:42 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:42 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:42 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:42 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:42 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:42 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:42 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:42 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 18:38:42 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 18:38:43 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.5ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 317ms (Views: 311.5ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 18:38:43 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 23:38:44.038738') AND ("spree_products".available_on <= '2015-02-03 23:38:44.042496') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2529.9ms) Completed 200 OK in 2638ms (Views: 2587.9ms | ActiveRecord: 28.2ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 18:38:46 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 18:38:46 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.8ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (204.0ms) Completed 200 OK in 250ms (Views: 234.0ms | ActiveRecord: 8.3ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 18:38:47 -0500 Started GET "/" for 127.0.0.1 at 2015-02-03 18:39:55 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6625.8ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7344.5ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (470.7ms) Spree::Tracker Load (0.5ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.4ms) Completed 200 OK in 12294ms (Views: 12239.7ms | ActiveRecord: 40.7ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 18:40:08 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 18:40:09 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:09 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:09 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:09 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:09 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:09 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:09 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:09 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:09 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:09 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:09 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:09 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:09 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:10 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:10 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:10 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:10 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:10 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:10 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:10 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:10 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:10 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:10 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:10 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:10 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:10 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:11 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:11 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:11 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:11 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:11 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:11 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:11 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:11 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:11 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:11 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:11 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:11 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:11 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:12 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:12 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:12 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:12 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:12 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:12 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:12 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:12 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:12 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:12 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:12 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:12 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:12 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:12 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:12 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:13 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:13 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:13 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:13 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:13 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:13 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:13 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:13 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:13 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:13 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:13 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:13 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:14 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:14 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:14 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:14 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:14 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:14 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:14 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:14 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:14 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:14 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:14 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:14 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:15 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 18:40:15 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 18:40:16 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (2.2ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 305ms (Views: 298.0ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 18:40:16 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 23:40:16.750705') AND ("spree_products".available_on <= '2015-02-03 23:40:16.752155') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.6ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2460.2ms) Completed 200 OK in 2526ms (Views: 2489.9ms | ActiveRecord: 26.2ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 18:40:19 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 18:40:19 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (188.6ms) Completed 200 OK in 220ms (Views: 208.0ms | ActiveRecord: 7.1ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 18:40:19 -0500 Started GET "/" for 127.0.0.1 at 2015-02-03 18:42:28 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.4ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6953.8ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7769.6ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (443.1ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.2ms) Completed 200 OK in 12420ms (Views: 12359.7ms | ActiveRecord: 47.2ms) Started GET "/" for 127.0.0.1 at 2015-02-03 18:42:41 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.4ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (7264.8ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (8073.3ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (303.0ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.6ms) Completed 200 OK in 10896ms (Views: 10838.9ms | ActiveRecord: 44.0ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 18:42:52 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 18:42:52 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:52 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:53 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:53 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:53 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:53 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:53 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:53 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:53 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:53 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:53 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:53 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:53 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:53 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:53 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:54 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:54 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:54 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:54 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:54 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:54 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:54 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:54 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:54 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:54 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:54 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:54 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:54 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:55 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:55 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:55 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:55 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:55 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:55 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:55 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:55 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:55 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:55 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:55 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:55 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:55 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:55 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:55 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:56 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:56 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:56 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:56 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:56 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:56 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:56 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:56 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:56 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:56 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:56 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:56 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:56 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:57 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:57 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:57 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:57 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:57 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:57 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:57 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:57 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:57 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:57 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:57 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:57 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:57 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:57 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:58 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:58 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:58 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:58 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:58 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:58 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:58 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:58 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:59 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 18:42:59 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 18:43:00 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.9ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 304ms (Views: 298.6ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 18:43:00 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 23:43:00.747338') AND ("spree_products".available_on <= '2015-02-03 23:43:00.749478') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.9ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (1.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (1.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2731.3ms) Completed 200 OK in 2843ms (Views: 2796.3ms | ActiveRecord: 30.6ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 18:43:03 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 18:43:03 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 18:43:03 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.5ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (179.3ms) Completed 200 OK in 221ms (Views: 205.4ms | ActiveRecord: 8.3ms) Started GET "/" for 127.0.0.1 at 2015-02-03 18:44:16 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.6ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (1.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.7ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (7734.6ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (8550.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (384.7ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.2ms) Completed 200 OK in 14484ms (Views: 14420.9ms | ActiveRecord: 48.1ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 18:44:31 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 18:44:32 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:32 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:32 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:32 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:32 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:32 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:32 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:32 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:33 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:33 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:33 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:33 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:33 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:33 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:33 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:33 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:33 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:33 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:33 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:33 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:34 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:34 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:34 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:34 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:34 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:34 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:34 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:34 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:34 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:35 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:35 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:35 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:35 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:35 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:35 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:35 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:35 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:35 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:35 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:35 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:36 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:36 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:36 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:36 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:36 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:36 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:36 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:36 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:36 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:36 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:37 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:37 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:37 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:37 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:37 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:37 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:37 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:37 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:37 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:38 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:38 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:38 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:38 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:38 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:38 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:38 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:38 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:38 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:38 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:38 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:39 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:39 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:39 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:39 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:39 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:39 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:39 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:39 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:40 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 18:44:40 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 18:44:41 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (2.4ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 403ms (Views: 394.2ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 18:44:41 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.9ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 23:44:41.978784') AND ("spree_products".available_on <= '2015-02-03 23:44:41.980922') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (4.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.5ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (3521.0ms) Completed 200 OK in 3617ms (Views: 3561.6ms | ActiveRecord: 40.1ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 18:44:45 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 18:44:45 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 18:44:45 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (257.7ms) Completed 200 OK in 295ms (Views: 277.7ms | ActiveRecord: 10.5ms) Started GET "/" for 127.0.0.1 at 2015-02-03 18:49:32 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.7ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6495.8ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (7391.6ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (419.0ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.1ms) Completed 200 OK in 11704ms (Views: 11652.1ms | ActiveRecord: 39.6ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 18:49:44 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 18:49:44 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:44 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:44 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:45 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:45 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:45 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:45 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:45 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:45 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:45 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:45 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:45 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:45 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:45 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:45 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:45 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:45 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:46 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:46 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:46 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:46 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:46 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:46 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:46 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:46 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:46 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:46 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:46 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:46 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:46 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:46 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:46 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:46 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:47 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:47 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:47 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:47 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:47 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:47 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:47 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:47 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:47 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:47 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:47 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:47 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:47 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:48 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:48 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:48 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:48 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:48 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:48 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:48 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:48 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:48 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:48 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:48 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:48 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:48 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:48 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:48 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:49 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:49 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:49 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:49 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:49 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:49 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:49 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:49 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:49 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:49 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:49 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:49 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:49 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:49 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:50 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:50 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:50 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:50 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:50 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 18:49:50 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 18:49:51 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (3.7ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 324ms (Views: 318.8ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 18:49:52 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (0.9ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-03 23:49:52.176169') AND ("spree_products".available_on <= '2015-02-03 23:49:52.179497') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.5ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2706.6ms) Completed 200 OK in 2795ms (Views: 2748.1ms | ActiveRecord: 28.0ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 18:49:54 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 18:49:55 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 18:49:55 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.7ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (3.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (200.9ms) Completed 200 OK in 239ms (Views: 220.8ms | ActiveRecord: 10.7ms) Started GET "/" for 127.0.0.1 at 2015-02-03 19:32:17 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (5940.0ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (6537.9ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (324.9ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.1ms) Completed 200 OK in 11161ms (Views: 11109.6ms | ActiveRecord: 37.7ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 19:32:29 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 19:32:29 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:29 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:29 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:29 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:29 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:29 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:29 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:29 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:29 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:29 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:29 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:30 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:30 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:30 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:30 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:30 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:30 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:30 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:30 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:30 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:30 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:30 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:30 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:30 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:31 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:31 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:31 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:31 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:31 -0500 Started GET "/assets/sprangular/controllers/ordersList.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:31 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:31 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:31 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:31 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:31 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:31 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:31 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:31 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:32 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:32 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:32 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:32 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:32 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:32 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:32 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:32 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:32 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:32 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:32 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:32 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:32 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:32 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:33 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:33 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:33 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:33 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:33 -0500 Started GET "/assets/sprangular/directives/dropdown.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:33 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:33 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:33 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:33 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:33 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:33 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:34 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:34 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:34 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:34 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:34 -0500 Started GET "/assets/sprangular/filters/sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:34 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:34 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:34 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:34 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:34 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:34 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:34 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:34 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:35 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:35 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:35 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:35 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 19:32:35 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 19:32:36 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (2.1ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 343ms (Views: 338.5ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 19:32:37 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (1.2ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-04 00:32:37.423140') AND ("spree_products".available_on <= '2015-02-04 00:32:37.425583') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (1.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2733.8ms) Completed 200 OK in 2841ms (Views: 2792.4ms | ActiveRecord: 31.6ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 19:32:40 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 19:32:40 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (186.5ms) Completed 200 OK in 217ms (Views: 204.4ms | ActiveRecord: 7.8ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 19:32:40 -0500 Started GET "/" for 127.0.0.1 at 2015-02-03 19:44:04 -0500 Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/auth_configuration/confirmable' LIMIT 1 Processing by Sprangular::HomeController#index as HTML Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/redirect_https_to_http' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency' LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.8ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.1ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Preference Load (0.6ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/logo' LIMIT 1 Spree::Preference Load (0.6ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/default_country_id' LIMIT 1 Spree::PaymentMethod Load (0.9ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/display_currency' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_symbol_position' LIMIT 1 Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/hide_cents' LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_decimal_mark' LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_thousands_separator' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_sign_before_symbol' LIMIT 1  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/always_include_confirm_step' LIMIT 1 Spree::Payment Load (0.4ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.8ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (1.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (1.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.7ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/track_inventory_levels' LIMIT 1  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (3.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]]  (0.8ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.5ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.4ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (1.1ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.8ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.5ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (1.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.4ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (1.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (1.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.8ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.8ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.6ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (10216.5ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (11743.0ms) Completed 500 Internal Server Error in 12361ms ActionView::Template::Error (File to import not found or unreadable: bootstrap-sass-official/bootstrap-sprockets. Load paths: /home/josh/Projects/Dynamo/sprangular/spec/dummy/app/assets/images /home/josh/Projects/Dynamo/sprangular/spec/dummy/app/assets/javascripts /home/josh/Projects/Dynamo/sprangular/spec/dummy/app/assets/stylesheets /home/josh/Projects/Dynamo/sprangular/spec/dummy/app/assets/templates /home/josh/Projects/Dynamo/sprangular/spec/dummy/vendor/assets/images /home/josh/Projects/Dynamo/sprangular/spec/dummy/vendor/assets/javascripts /home/josh/Projects/Dynamo/sprangular/spec/dummy/vendor/assets/stylesheets /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree_gateway-003416462d5a/lib/assets/javascripts /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree_gateway-003416462d5a/lib/assets/stylesheets /home/josh/Projects/Dynamo/sprangular/app/assets/javascripts /home/josh/Projects/Dynamo/sprangular/app/assets/stylesheets /home/josh/Projects/Dynamo/sprangular/app/assets/templates /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/neat-1.7.1/app/assets/stylesheets /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/bourbon-4.1.1/app/assets/stylesheets /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/rails-assets-angularytics-0.3.0/app/assets/javascripts /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/rails-assets-angular-1.3.8/app/assets/javascripts /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/rails-assets-angular-1.3.8/app/assets/stylesheets /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/rails-assets-underscore.string-2.4.0/app/assets/javascripts /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/rails-assets-underscore-1.7.0/app/assets/javascripts /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/angularjs-rails-1.3.8/vendor/assets/javascripts /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree_auth_devise-e2ee95e53de6/lib/assets/javascripts /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree_auth_devise-e2ee95e53de6/lib/assets/stylesheets /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/backend/app/assets/images /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/backend/app/assets/javascripts /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/backend/app/assets/stylesheets /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/backend/vendor/assets/images /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/backend/vendor/assets/javascripts /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/backend/vendor/assets/stylesheets /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/select2-rails-3.5.9.1/vendor/assets/images /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/select2-rails-3.5.9.1/vendor/assets/javascripts /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/select2-rails-3.5.9.1/vendor/assets/stylesheets /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/jquery-ui-rails-5.0.3/app/assets/images /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/jquery-ui-rails-5.0.3/app/assets/javascripts /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/jquery-ui-rails-5.0.3/app/assets/stylesheets /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/jquery-rails-3.1.2/vendor/assets/javascripts /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/core/app/assets/images /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/core/app/assets/javascripts /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/core/vendor/assets/javascripts /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/core/vendor/assets/stylesheets /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/font-awesome-rails-4.2.0.0/app/assets/fonts /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/font-awesome-rails-4.2.0.0/app/assets/stylesheets (in /home/josh/Projects/Dynamo/sprangular/app/assets/stylesheets/sprangular.scss:1)): 7: meta(name="description" content="{{status.meta.description}}") 8: 9: = csrf_meta_tags 10: = stylesheet_link_tag "application", media: "all" 11: 12: = render 'sprangular/shared/templates' 13: app/views/layouts/sprangular/application.slim:10:in `_ff50e36a62c4e0037da5b33c901bf752' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.9ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (2.3ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (368.9ms) Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/auth_configuration/confirmable' LIMIT 1 Started GET "/" for 127.0.0.1 at 2015-02-03 19:45:34 -0500 ActiveRecord::SchemaMigration Load (3.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Sprangular::HomeController#index as HTML Spree::Preference Load (0.6ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/redirect_https_to_http' LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency' LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.7ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.1ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/logo' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/default_country_id' LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/display_currency' LIMIT 1 Spree::Preference Load (0.6ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_symbol_position' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/hide_cents' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_decimal_mark' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_thousands_separator' LIMIT 1 Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_sign_before_symbol' LIMIT 1  (0.6ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/always_include_confirm_step' LIMIT 1 Spree::Payment Load (0.7ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (1.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.7ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.7ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/track_inventory_levels' LIMIT 1  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]]  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.7ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.6ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (1.2ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.6ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (1.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.4ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.8ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.5ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (1.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (10420.3ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (13275.6ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (724.7ms) Spree::Tracker Load (0.3ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (22.2ms) Completed 200 OK in 64437ms (Views: 63715.1ms | ActiveRecord: 104.0ms) Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 19:46:40 -0500 Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 19:46:56 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 19:46:56 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 19:46:56 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-03 19:46:56 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-03 19:46:57 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 19:46:57 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 19:46:57 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 19:46:57 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 19:46:57 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 19:46:57 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 19:46:58 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-03 19:46:58 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-03 19:46:58 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-03 19:46:58 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-03 19:46:58 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 19:46:58 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 19:46:58 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-03 19:46:58 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-03 19:46:59 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 19:46:59 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 19:46:59 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 19:46:59 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 19:46:59 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 19:46:59 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 19:46:59 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 19:46:59 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 19:46:59 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:00 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:00 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:00 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:00 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:00 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:00 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:00 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:00 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:00 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:00 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:01 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:01 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:01 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:01 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:01 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:01 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:01 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:01 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:01 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:01 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:02 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:02 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:02 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:02 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:02 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:02 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:02 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:02 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:03 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:03 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:03 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:03 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:03 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:03 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:03 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:03 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:03 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:04 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:04 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:04 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:04 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:04 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:04 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:04 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:05 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:05 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:05 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:05 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:05 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:05 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:05 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:05 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:06 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:06 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:06 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:06 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:06 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:06 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:07 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:07 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:07 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:08 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:08 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:08 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:09 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:09 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:09 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:09 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:09 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:09 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:09 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:10 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:10 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:10 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:10 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:10 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:10 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:10 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:10 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:11 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:11 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:11 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:11 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:11 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:11 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:12 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:12 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:12 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:12 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:12 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:12 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:12 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:13 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:13 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:13 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:13 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:13 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:13 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:13 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:14 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:14 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:14 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:14 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:14 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:14 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:14 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:14 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:15 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:15 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:15 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:15 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:15 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:15 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:15 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:16 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:16 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-03 19:47:16 -0500 Started GET "/" for 127.0.0.1 at 2015-02-03 19:48:22 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/redirect_https_to_http' LIMIT 1 Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency' LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.1ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/logo' LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/default_country_id' LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/display_currency' LIMIT 1 Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_symbol_position' LIMIT 1 Spree::Preference Load (0.6ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/hide_cents' LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_decimal_mark' LIMIT 1 Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_thousands_separator' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_sign_before_symbol' LIMIT 1  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/always_include_confirm_step' LIMIT 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (4.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::Preference Load (0.9ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/track_inventory_levels' LIMIT 1  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (1.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (1.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.9ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.5ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (8442.0ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (9427.9ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (755.1ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.6ms) Completed 200 OK in 15431ms (Views: 15325.7ms | ActiveRecord: 67.3ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 19:48:38 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 19:48:38 -0500 Started GET "/" for 127.0.0.1 at 2015-02-03 19:48:39 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/redirect_https_to_http' LIMIT 1 Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency' LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.1ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/logo' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/default_country_id' LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/display_currency' LIMIT 1 Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_symbol_position' LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/hide_cents' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_decimal_mark' LIMIT 1 Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_thousands_separator' LIMIT 1 Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_sign_before_symbol' LIMIT 1  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/always_include_confirm_step' LIMIT 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/track_inventory_levels' LIMIT 1  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.5ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.7ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.5ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (8405.2ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (9419.9ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (366.7ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.9ms) Completed 200 OK in 13530ms (Views: 13450.0ms | ActiveRecord: 55.8ms) Started GET "/" for 127.0.0.1 at 2015-02-03 19:50:17 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/redirect_https_to_http' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency' LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Preference Load (0.7ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/logo' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/default_country_id' LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/display_currency' LIMIT 1 Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_symbol_position' LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/hide_cents' LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_decimal_mark' LIMIT 1 Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_thousands_separator' LIMIT 1 Spree::Preference Load (0.6ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_sign_before_symbol' LIMIT 1  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Preference Load (0.7ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/always_include_confirm_step' LIMIT 1 Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.5ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/track_inventory_levels' LIMIT 1  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.6ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.4ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.9ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.6ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (8326.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (9432.5ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (561.6ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.1ms) Completed 200 OK in 42597ms (Views: 42517.2ms | ActiveRecord: 60.4ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 19:51:00 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 19:51:00 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:01 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:01 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:01 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:01 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:01 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:01 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:01 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:01 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:02 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:02 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:02 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:02 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:02 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:02 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:02 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:02 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:02 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:02 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:03 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:03 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:03 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:03 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:03 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:03 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:03 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:03 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:03 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:03 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:04 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:04 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:04 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:04 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:04 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:04 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:04 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:04 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:04 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:04 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:04 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:04 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:04 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:05 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:05 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:05 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:05 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:05 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:05 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:05 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:05 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:05 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:05 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:05 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:05 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:06 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:06 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:06 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:06 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:06 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:06 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:06 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:06 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:06 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:06 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:06 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:07 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:07 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:07 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:07 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:07 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:07 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:07 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:07 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:07 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:07 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:07 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:08 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:08 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:08 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:08 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:08 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:08 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:08 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:08 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:09 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:09 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:09 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:09 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:10 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:10 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:10 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:10 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:10 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:10 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:10 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:10 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:10 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:11 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:11 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:11 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:11 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:11 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 19:51:12 -0500 Processing by Sprangular::AccountsController#show as JSON Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/redirect_https_to_http' LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (2.9ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 348ms (Views: 332.3ms | ActiveRecord: 0.3ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 19:51:12 -0500 Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-03 19:51:12 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 19:51:13 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (2.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (323.1ms) Completed 200 OK in 390ms (Views: 351.2ms | ActiveRecord: 14.9ms) Started GET "/api/products?page=1&per_page=8" for 127.0.0.1 at 2015-02-03 19:51:13 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"8"} Spree::Preference Load (0.6ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/show_products_without_price' LIMIT 1 Spree::Preference Load (0.7ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency' LIMIT 1  (1.4ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-04 00:51:13.881696') AND ("spree_products".available_on <= '2015-02-04 00:51:13.885170') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0) subquery_for_count  (1.6ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-04 00:51:13.881696') AND ("spree_products".available_on <= '2015-02-04 00:51:13.885170') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (1.3ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-04 00:51:13.881696') AND ("spree_products".available_on <= '2015-02-04 00:51:13.885170') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0 Spree::ProductOptionType Load (0.7ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::OptionType Load (1.8ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.5ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Image Load (1.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.5ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Price Load (1.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::ProductProperty Load (1.9ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY spree_product_properties.position Spree::Property Load (1.9ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (1.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_variants".position ASC Spree::Image Load (1.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.7ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.9ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::Preference Load (1.0ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/display_currency' LIMIT 1 Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_symbol_position' LIMIT 1 Spree::Preference Load (0.6ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/hide_cents' LIMIT 1 Spree::Preference Load (0.7ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_decimal_mark' LIMIT 1 Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_thousands_separator' LIMIT 1 Spree::Preference Load (0.6ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_sign_before_symbol' LIMIT 1 Spree::Preference Load (0.6ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/track_inventory_levels' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]]  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (1.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (1.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.5ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.5ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (7399.6ms) Completed 200 OK in 7471ms (Views: 7362.4ms | ActiveRecord: 72.7ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-03 19:51:21 -0500 Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-03 19:51:21 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (5.6ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (5.9ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (24.2ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (538.7ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (49.8ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (2828.5ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 19:51:24 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-03 19:51:24 -0500 Started GET "/" for 127.0.0.1 at 2015-02-03 19:51:33 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.9ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Preference Load (0.6ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/logo' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/default_country_id' LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/always_include_confirm_step' LIMIT 1 Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (1.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.9ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.6ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.8ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (8401.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (9408.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (401.6ms) Spree::Tracker Load (0.5ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.4ms) Completed 200 OK in 13609ms (Views: 13517.9ms | ActiveRecord: 56.0ms) Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 19:51:48 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:48 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:48 -0500 Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 19:51:48 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:49 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:49 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:49 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:49 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:49 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:49 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:49 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:49 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:49 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:50 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:50 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:50 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:50 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:50 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:50 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:50 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:50 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:50 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:50 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:51 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:51 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:51 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:51 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:51 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:51 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:51 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:51 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:51 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:51 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:51 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:51 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:52 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:52 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:52 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:52 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:52 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:52 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:52 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:52 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:52 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:52 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:52 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:53 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:53 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:53 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:53 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:53 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:53 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:53 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:53 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:53 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:53 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:53 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:53 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:54 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:54 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:54 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:54 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:54 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:54 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:54 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:54 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:54 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:54 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:54 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:54 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:55 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:55 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:55 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:55 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:55 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:56 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:56 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:56 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:56 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:56 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:56 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:56 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:56 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:56 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:57 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:57 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:57 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 19:51:58 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 19:51:59 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.4ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 320ms (Views: 314.3ms | ActiveRecord: 0.0ms) Started GET "/api/products?page=1&per_page=8" for 127.0.0.1 at 2015-02-03 19:51:59 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"8"}  (2.2ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-04 00:51:59.842968') AND ("spree_products".available_on <= '2015-02-04 00:51:59.845301') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0) subquery_for_count  (2.1ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-04 00:51:59.842968') AND ("spree_products".available_on <= '2015-02-04 00:51:59.845301') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (1.5ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-04 00:51:59.842968') AND ("spree_products".available_on <= '2015-02-04 00:51:59.845301') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0 Spree::ProductOptionType Load (0.7ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.8ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Taxon Load (1.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (1.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Image Load (2.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.4ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Price Load (1.6ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::ProductProperty Load (1.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY spree_product_properties.position Spree::Property Load (1.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (1.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_variants".position ASC Spree::Image Load (1.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.7ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (1.7ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.8ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.5ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (6888.5ms) Completed 200 OK in 6945ms (Views: 6870.6ms | ActiveRecord: 63.1ms) Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 19:52:06 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.5ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (231.4ms) Completed 200 OK in 275ms (Views: 256.1ms | ActiveRecord: 9.3ms) Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-03 19:52:07 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 19:52:07 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 19:52:07 -0500 Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-03 19:52:07 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.7ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (4.5ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (32.3ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (298.8ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (6.0ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (2038.5ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-03 19:52:10 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-03 19:52:10 -0500 Started POST "/api/cart/add_variant" for 127.0.0.1 at 2015-02-03 19:52:30 -0500 Processing by Sprangular::CartsController#add_variant as JSON Parameters: {"variant_id"=>"1", "quantity"=>"1"} Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Unpermitted parameters: currency Spree::Price Load (0.7ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" = ? [["variant_id", 1]]  (0.2ms) begin transaction Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::TaxCategory Load (0.5ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' SQL (3.5ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 17.0], ["created_at", "2015-02-04 00:52:31.056317"], ["currency", "USD"], ["order_id", 6], ["price", 15.99], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2015-02-04 00:52:31.056317"], ["variant_id", 1]] Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/tax_using_ship_address' LIMIT 1 Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-04 00:52:31.135488' WHERE "spree_orders"."id" = 6 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.8ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.7ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] SQL (0.4ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-04 00:52:31.177200' WHERE "spree_line_items"."id" = 21  (22.4ms) commit transaction  (0.6ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.6ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.5ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.5ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.8ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order'))  (0.5ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.5ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.4ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.3ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.5ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.8ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.5ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.6ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.5ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.6ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (18.0ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 95.94999999999999, "item_count" = 5, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 95.94999999999999, "updated_at" = '2015-02-04 00:52:31.278468' WHERE "spree_orders"."id" = 6 Spree::Order Load (1.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::Shipment Exists (0.4ms) SELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? LIMIT 1 [["order_id", 6]] Spree::Promotion Load (0.8ms) SELECT DISTINCT "spree_promotions".* FROM "spree_promotions" LEFT OUTER JOIN "spree_orders_promotions" ON "spree_promotions"."id" = "spree_orders_promotions"."promotion_id" WHERE (starts_at IS NULL OR starts_at < '2015-02-04 00:52:31.326598') AND (expires_at IS NULL OR expires_at > '2015-02-04 00:52:31.327370') AND (("spree_promotions"."code" IS NULL AND "spree_promotions"."path" IS NULL OR "spree_orders_promotions"."order_id" = 6)) Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] SQL (254.5ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-04 00:52:31.349996' WHERE "spree_line_items"."id" = 21  (0.4ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.4ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.3ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (1.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order'))  (0.3ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.4ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.9ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.4ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (121.7ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 95.94999999999999, "item_count" = 5, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 95.94999999999999, "updated_at" = '2015-02-04 00:52:31.676691' WHERE "spree_orders"."id" = 6 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::TaxCategory Load (0.3ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.6ms) SELECT COUNT(*) FROM "spree_inventory_units" WHERE "spree_inventory_units"."line_item_id" = ? [["line_item_id", 21]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Shipment Exists (0.3ms) SELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? LIMIT 1 [["order_id", 6]]  (0.4ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.5ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.4ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (1.2ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.9ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.8ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.8ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (11708.6ms) Completed 200 OK in 12696ms (Views: 11666.7ms | ActiveRecord: 524.8ms) Started GET "/" for 127.0.0.1 at 2015-02-03 19:56:08 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Preference Load (0.7ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/redirect_https_to_http' LIMIT 1 Spree::Preference Load (0.6ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency' LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'SV9fHm5oIoYW4hFVa727AQ' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 CACHE (0.1ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Preference Load (0.8ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/logo' LIMIT 1 Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/default_country_id' LIMIT 1 Spree::PaymentMethod Load (0.8ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (1650.1ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (799.5ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (11.1ms) Completed 200 OK in 34699ms (Views: 34660.4ms | ActiveRecord: 6.5ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 19:56:43 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 19:56:44 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:44 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:44 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:44 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:44 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:44 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:44 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:44 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:44 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:44 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:44 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:44 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:45 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:45 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:45 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:45 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:45 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:45 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:45 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:45 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:45 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:45 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:45 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:45 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:46 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:46 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:46 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:46 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:46 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:46 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:46 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:46 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:46 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:46 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:46 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:47 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:47 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:47 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:47 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:47 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:47 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:47 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:47 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:47 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:47 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:47 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:47 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:47 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:48 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:48 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:48 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:48 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:48 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:48 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:48 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:48 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:48 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:48 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:48 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:48 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:49 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:49 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:49 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:49 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:49 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:49 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:49 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:49 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:49 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:49 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:49 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:49 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:49 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:50 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:50 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:50 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:50 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:50 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:50 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:50 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:50 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:50 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:50 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:50 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:50 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:50 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 19:56:50 -0500 Started GET "/api/cart.json" for 127.0.0.1 at 2015-02-03 19:56:51 -0500 Processing by Sprangular::CartsController#show as JSON Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'SV9fHm5oIoYW4hFVa727AQ' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/not_found.json.rabl (1.9ms) Completed 404 Not Found in 52ms (Views: 28.3ms | ActiveRecord: 1.8ms) Started GET "/api/account" for 127.0.0.1 at 2015-02-03 19:56:51 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.0ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 258ms (Views: 255.1ms | ActiveRecord: 0.0ms) Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 19:56:51 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (174.0ms) Completed 200 OK in 199ms (Views: 189.2ms | ActiveRecord: 6.4ms) Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-03 19:56:52 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 19:56:52 -0500 Started GET "/api/products?page=1&per_page=8" for 127.0.0.1 at 2015-02-03 19:56:52 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"8"} Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/show_products_without_price' LIMIT 1  (0.7ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-04 00:56:52.321109') AND ("spree_products".available_on <= '2015-02-04 00:56:52.322985') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0) subquery_for_count  (0.7ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-04 00:56:52.321109') AND ("spree_products".available_on <= '2015-02-04 00:56:52.322985') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (1.1ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-04 00:56:52.321109') AND ("spree_products".available_on <= '2015-02-04 00:56:52.322985') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.6ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (0.9ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Image Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.3ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Price Load (0.6ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::ProductProperty Load (1.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY spree_product_properties.position Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_variants".position ASC Spree::Image Load (1.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.5ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.6ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/display_currency' LIMIT 1 Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_symbol_position' LIMIT 1 Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/hide_cents' LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_decimal_mark' LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_thousands_separator' LIMIT 1 Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_sign_before_symbol' LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/track_inventory_levels' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (5548.9ms) Completed 200 OK in 5592ms (Views: 5525.4ms | ActiveRecord: 48.7ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-03 19:56:57 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-03 19:56:57 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 19:56:58 -0500 Started GET "/" for 127.0.0.1 at 2015-02-03 19:58:44 -0500 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/auth_configuration/confirmable' LIMIT 1 Processing by Sprangular::HomeController#index as HTML Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/redirect_https_to_http' LIMIT 1 Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency' LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Preference Load (0.6ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/logo' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/default_country_id' LIMIT 1 Spree::PaymentMethod Load (0.6ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/display_currency' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_symbol_position' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/hide_cents' LIMIT 1 Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_decimal_mark' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_thousands_separator' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_sign_before_symbol' LIMIT 1  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/always_include_confirm_step' LIMIT 1 Spree::Payment Load (0.5ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.7ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.8ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/track_inventory_levels' LIMIT 1  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (1.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.9ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.4ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.4ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.8ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.4ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.5ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (1.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.7ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (1.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.5ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.4ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (4.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.5ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (10511.5ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (11723.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (621.7ms) Spree::Tracker Load (0.6ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (15.8ms) Completed 200 OK in 17625ms (Views: 17343.7ms | ActiveRecord: 99.9ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-03 19:59:06 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-03 19:59:06 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:06 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:06 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:07 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:07 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:07 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:07 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:07 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:07 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:07 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:07 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:08 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:08 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:08 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:08 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:08 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:08 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:08 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:08 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:08 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:09 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:09 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:09 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:09 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:09 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:09 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:09 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:09 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:09 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:10 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:10 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:10 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:10 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:10 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:10 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:10 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:10 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:10 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:11 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:11 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:11 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:11 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:11 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:11 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:11 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:11 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:11 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:11 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:11 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:12 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:12 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:12 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:12 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:12 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:12 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:12 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:12 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:12 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:12 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:12 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:12 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:13 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:13 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:13 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:13 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:13 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:13 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:13 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:13 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:13 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:14 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:14 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:14 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:14 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:14 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:14 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:14 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:14 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:14 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:14 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:14 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:15 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:15 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:15 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:15 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:15 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-03 19:59:15 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-03 19:59:16 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.8ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 383ms (Views: 376.8ms | ActiveRecord: 0.0ms) Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-03 19:59:16 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Product Load (6.8ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-04 00:59:17.057539') AND ("spree_products".available_on <= '2015-02-04 00:59:17.059815') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.5ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (3277.3ms) Completed 200 OK in 3380ms (Views: 3316.1ms | ActiveRecord: 39.0ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-03 19:59:20 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-03 19:59:20 -0500 Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-03 19:59:20 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-03 19:59:20 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.7ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (2.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (271.2ms) Completed 200 OK in 323ms (Views: 291.5ms | ActiveRecord: 11.6ms) Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-03 19:59:21 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.8ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (4.2ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (17.3ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (519.5ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.4ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (2141.6ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-03 19:59:23 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-03 19:59:23 -0500 Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/auth_configuration/confirmable' LIMIT 1 Started GET "/" for 127.0.0.1 at 2015-02-09 14:26:02 -0500 ActiveRecord::SchemaMigration Load (1.0ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Sprangular::HomeController#index as HTML Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/redirect_https_to_http' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency' LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (2.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/logo' LIMIT 1 Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/default_country_id' LIMIT 1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/display_currency' LIMIT 1 Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_symbol_position' LIMIT 1 Spree::Preference Load (0.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/hide_cents' LIMIT 1 Spree::Preference Load (0.1ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_decimal_mark' LIMIT 1 Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_thousands_separator' LIMIT 1 Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_sign_before_symbol' LIMIT 1  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/always_include_confirm_step' LIMIT 1 Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (2.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (2.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/track_inventory_levels' LIMIT 1  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (4.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.4ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.5ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.5ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.4ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.5ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (7891.9ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (9373.1ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (554.7ms) Spree::Tracker Load (0.3ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (16.1ms) Completed 200 OK in 42843ms (Views: 42420.6ms | ActiveRecord: 79.9ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-09 14:26:45 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-09 14:26:45 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:46 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:46 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:46 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:46 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:46 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:46 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:46 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:46 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:46 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:47 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:47 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:47 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:47 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:47 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:47 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:47 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:47 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:47 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:47 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:48 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:48 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:48 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:48 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:48 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:48 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:48 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:48 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:48 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:48 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:48 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:48 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:49 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:49 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:49 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:49 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:49 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:49 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:49 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:49 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:49 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:49 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:49 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:49 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:49 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:49 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:50 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:50 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:50 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:50 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:50 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:50 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:50 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:50 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:50 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:50 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:50 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:50 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:51 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:51 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:51 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:51 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:51 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:51 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:51 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:51 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:51 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:51 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:51 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:51 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:51 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:51 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:52 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:52 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:52 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:52 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:52 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:52 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:52 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:52 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:52 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:52 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:52 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:52 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:53 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:53 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:53 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:53 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:53 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:53 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:53 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:54 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:54 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:54 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:54 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:54 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:54 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:54 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:54 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:54 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:54 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:54 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:55 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:55 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-09 14:26:55 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-09 14:26:55 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.9ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 318ms (Views: 306.5ms | ActiveRecord: 0.0ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-09 14:26:56 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-09 14:26:56 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (1.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (216.9ms) Completed 200 OK in 278ms (Views: 246.5ms | ActiveRecord: 8.4ms) Started GET "/api/products?page=1&per_page=8" for 127.0.0.1 at 2015-02-09 14:26:56 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"8"} Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/show_products_without_price' LIMIT 1  (1.1ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-09 19:26:56.914065') AND ("spree_products".available_on <= '2015-02-09 19:26:56.916557') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0) subquery_for_count  (1.3ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-09 19:26:56.914065') AND ("spree_products".available_on <= '2015-02-09 19:26:56.916557') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (1.0ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-09 19:26:56.914065') AND ("spree_products".available_on <= '2015-02-09 19:26:56.916557') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.5ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Image Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.3ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Price Load (0.9ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::ProductProperty Load (1.6ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY spree_product_properties.position Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_variants".position ASC Spree::Image Load (1.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.5ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.6ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (5312.3ms) Completed 200 OK in 5362ms (Views: 5296.2ms | ActiveRecord: 46.7ms) Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-09 14:27:02 -0500 Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-09 14:27:02 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.3ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (3.3ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (11.5ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (204.2ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (30.2ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1860.3ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-09 14:27:04 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-09 14:27:04 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-09 14:27:04 -0500 Started GET "/" for 127.0.0.1 at 2015-02-09 14:27:58 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.7ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (1.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (1.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (1.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.9ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (8192.3ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (9074.1ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (421.0ms) Spree::Tracker Load (0.3ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.6ms) Completed 200 OK in 12770ms (Views: 12705.1ms | ActiveRecord: 51.0ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-09 14:28:12 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-09 14:28:12 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:13 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:13 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:13 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:13 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:13 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:13 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:13 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:13 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:13 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:13 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:13 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:14 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:14 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:14 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:14 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:14 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:14 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:14 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:14 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:14 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:14 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:14 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:14 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:14 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:15 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:15 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:15 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:15 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:15 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:15 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:15 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:15 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:15 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:15 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:15 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:15 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:15 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:15 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:16 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:16 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:16 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:16 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:16 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:16 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:16 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:16 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:16 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:16 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:16 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:16 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:16 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:16 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:16 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:17 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:17 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:17 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:17 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:17 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:17 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:17 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:17 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:17 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:17 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:17 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:17 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:17 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:17 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:18 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:18 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:18 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:18 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:18 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:18 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:18 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:18 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:18 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:18 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:18 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:18 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:18 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:18 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:18 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:19 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:19 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:19 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:19 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:19 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:19 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:19 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:19 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:20 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:20 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:20 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:20 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:20 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:20 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:21 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:21 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:21 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:21 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:21 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-09 14:28:21 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-09 14:28:22 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.3ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 313ms (Views: 307.8ms | ActiveRecord: 0.0ms) Started GET "/api/products?page=1&per_page=8" for 127.0.0.1 at 2015-02-09 14:28:22 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"8"}  (2.7ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-09 19:28:23.019859') AND ("spree_products".available_on <= '2015-02-09 19:28:23.022221') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0) subquery_for_count  (1.0ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-09 19:28:23.019859') AND ("spree_products".available_on <= '2015-02-09 19:28:23.022221') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (3.2ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-09 19:28:23.019859') AND ("spree_products".available_on <= '2015-02-09 19:28:23.022221') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0 Spree::ProductOptionType Load (0.6ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.8ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (1.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Image Load (1.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.4ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Price Load (0.9ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::ProductProperty Load (1.7ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY spree_product_properties.position Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_variants".position ASC Spree::Image Load (1.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.7ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.9ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.8ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.8ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (5378.7ms) Completed 200 OK in 5428ms (Views: 5365.9ms | ActiveRecord: 50.7ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-09 14:28:28 -0500 Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-09 14:28:28 -0500 Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-09 14:28:28 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.2ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (3.1ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (35.7ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (482.4ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (6.1ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1917.6ms) Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-09 14:28:30 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (209.3ms) Completed 200 OK in 271ms (Views: 252.2ms | ActiveRecord: 6.8ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-09 14:28:31 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-09 14:28:31 -0500 Started GET "/" for 127.0.0.1 at 2015-02-09 14:28:47 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (1.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (7536.3ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (8415.5ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (437.1ms) Spree::Tracker Load (0.3ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.5ms) Completed 200 OK in 12263ms (Views: 12200.7ms | ActiveRecord: 47.8ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-09 14:29:00 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-09 14:29:00 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:00 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:00 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:00 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:00 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:01 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:01 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:01 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:01 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:01 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:01 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:01 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:01 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:01 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:01 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:01 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:01 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:01 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:02 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:02 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:02 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:02 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:02 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:02 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:02 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:02 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:02 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:02 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:02 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:03 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:03 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:03 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:03 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:03 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:03 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:03 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:03 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:03 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:03 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:03 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:03 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:03 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:03 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:04 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:04 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:04 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:04 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:04 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:04 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:04 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:04 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:04 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:04 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:04 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:04 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:04 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:04 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:04 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:04 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:05 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:05 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:05 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:05 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:05 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:05 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:05 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:05 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:05 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:05 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:05 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:05 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:05 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:05 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:06 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:06 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:06 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:06 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:06 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:06 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:06 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:06 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:06 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:06 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:06 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:06 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:06 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-09 14:29:06 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-09 14:29:07 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.1ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 300ms (Views: 295.6ms | ActiveRecord: 0.0ms) Started GET "/api/products?page=1&per_page=8" for 127.0.0.1 at 2015-02-09 14:29:07 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"8"}  (0.8ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-09 19:29:07.997128') AND ("spree_products".available_on <= '2015-02-09 19:29:08.001209') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0) subquery_for_count  (1.2ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-09 19:29:07.997128') AND ("spree_products".available_on <= '2015-02-09 19:29:08.001209') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (1.4ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-09 19:29:07.997128') AND ("spree_products".available_on <= '2015-02-09 19:29:08.001209') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.7ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Taxon Load (1.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (1.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Image Load (1.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.5ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Price Load (1.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::ProductProperty Load (1.6ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY spree_product_properties.position Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (1.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_variants".position ASC Spree::Image Load (1.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.5ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.7ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.6ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (5521.7ms) Completed 200 OK in 5580ms (Views: 5512.9ms | ActiveRecord: 49.6ms) Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-09 14:29:13 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (188.7ms) Completed 200 OK in 222ms (Views: 207.6ms | ActiveRecord: 8.3ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-09 14:29:13 -0500 Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-09 14:29:13 -0500 Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-09 14:29:14 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.1ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (3.4ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (20.1ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (321.1ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.8ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1590.8ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-09 14:29:15 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-09 14:29:15 -0500 Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-09 14:29:52 -0500 Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-09 14:29:59 -0500 Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-09 14:31:30 -0500 Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-09 14:31:32 -0500 Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-09 14:31:33 -0500 Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-09 14:31:33 -0500 Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-09 14:31:34 -0500 Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-09 14:31:35 -0500 Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-09 14:31:35 -0500 Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-09 14:31:35 -0500 Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-09 14:31:35 -0500 Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-09 14:31:36 -0500 Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-09 14:31:36 -0500 Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-09 14:31:36 -0500 Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-09 14:31:36 -0500 Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-09 14:31:36 -0500 Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-09 14:31:37 -0500 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/auth_configuration/confirmable' LIMIT 1 Started GET "/" for 127.0.0.1 at 2015-02-10 12:50:36 -0500 ActiveRecord::SchemaMigration Load (1.6ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Sprangular::HomeController#index as HTML Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/redirect_https_to_http' LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency' LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/logo' LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/default_country_id' LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/display_currency' LIMIT 1 Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_symbol_position' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/hide_cents' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_decimal_mark' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_thousands_separator' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_sign_before_symbol' LIMIT 1  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/always_include_confirm_step' LIMIT 1 Spree::Payment Load (0.5ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.5ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (2.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/track_inventory_levels' LIMIT 1  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (4.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.4ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.6ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.7ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.5ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.4ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.5ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (8233.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (10505.8ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (558.5ms) Spree::Tracker Load (0.3ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (16.3ms) Completed 200 OK in 45512ms (Views: 44920.3ms | ActiveRecord: 84.2ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-10 12:51:22 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-10 12:51:22 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:22 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:22 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:22 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:23 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:23 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:23 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:23 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:23 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:23 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:23 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:23 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:24 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:24 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:24 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:24 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:24 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:24 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:24 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:24 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:24 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:24 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:24 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:24 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:25 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:25 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:25 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:25 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:25 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:25 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:25 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:25 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:25 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:25 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:25 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:25 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:26 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:26 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:26 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:26 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:26 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:26 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:26 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:26 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:26 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:26 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:26 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:26 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:26 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:26 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:27 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:27 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:27 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:27 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:27 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:27 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:27 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:27 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:27 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:27 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:27 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:27 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:27 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:28 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:28 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:28 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:28 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:28 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:28 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:28 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:28 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:28 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:28 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:28 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:28 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:28 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:28 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:29 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:29 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:29 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:29 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:29 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:29 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:29 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:29 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:30 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-10 12:51:30 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-10 12:51:31 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (2.7ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 374ms (Views: 369.3ms | ActiveRecord: 0.0ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-10 12:51:31 -0500 Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-10 12:51:31 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-10 12:51:31 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (202.8ms) Completed 200 OK in 264ms (Views: 233.7ms | ActiveRecord: 6.9ms) Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-10 12:51:32 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.4ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.1ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (11.4ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (328.3ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (25.6ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1508.6ms) Started GET "/api/products?page=1&per_page=8" for 127.0.0.1 at 2015-02-10 12:51:33 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"8"} Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/show_products_without_price' LIMIT 1  (0.8ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-10 17:51:34.013744') AND ("spree_products".available_on <= '2015-02-10 17:51:34.015174') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0) subquery_for_count  (1.3ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-10 17:51:34.013744') AND ("spree_products".available_on <= '2015-02-10 17:51:34.015174') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (1.3ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-10 17:51:34.013744') AND ("spree_products".available_on <= '2015-02-10 17:51:34.015174') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.5ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.3ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Price Load (0.7ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::ProductProperty Load (1.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY spree_product_properties.position Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (1.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_variants".position ASC Spree::Image Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.5ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.7ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (5287.2ms) Completed 200 OK in 5326ms (Views: 5266.9ms | ActiveRecord: 46.2ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-10 12:51:39 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-10 12:51:39 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-10 12:51:39 -0500 Started GET "/assets/account/signin.html" for 127.0.0.1 at 2015-02-10 12:51:47 -0500 Started POST "/spree/login.json" for 127.0.0.1 at 2015-02-10 12:51:49 -0500 Processing by Spree::UserSessionsController#create as JSON Parameters: {"spree_user"=>{"email"=>"spree@example.com", "password"=>"[FILTERED]"}} Spree::User Load (0.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."email" = 'spree@example.com' ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."user_id" IS NULL SQL (52.4ms) UPDATE "spree_orders" SET "user_id" = 1, "email" = 'spree@example.com', "created_by_id" = 1 WHERE "spree_orders"."id" = 6  (0.2ms) begin transaction SQL (0.9ms) UPDATE "spree_users" SET "current_sign_in_at" = ?, "last_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "spree_users"."id" = 1 [["current_sign_in_at", "2015-02-10 17:51:50.192916"], ["last_sign_in_at", "2015-01-25 16:20:08.326174"], ["sign_in_count", 3], ["updated_at", "2015-02-10 17:51:50.194762"]]  (12.7ms) commit transaction Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 5]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]]  (0.2ms) begin transaction Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::TaxCategory Load (0.4ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) SELECT COUNT(*) FROM "spree_inventory_units" WHERE "spree_inventory_units"."line_item_id" = ? [["line_item_id", 20]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' SQL (0.8ms) UPDATE "spree_line_items" SET "quantity" = ?, "updated_at" = ? WHERE "spree_line_items"."id" = 20 [["quantity", 2], ["updated_at", "2015-02-10 17:51:50.330021"]] SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 17:51:50.333461' WHERE "spree_orders"."id" = 6 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/tax_using_ship_address' LIMIT 1 Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."default_tax" = 't' ORDER BY "spree_zones"."id" ASC LIMIT 1 Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] SQL (0.4ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-10 17:51:50.410731' WHERE "spree_line_items"."id" = 20  (19.2ms) commit transaction Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] SQL (17.4ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 115.94, "item_count" = 6, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 115.94, "updated_at" = '2015-02-10 17:51:50.449030' WHERE "spree_orders"."id" = 6 Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 5]]  (0.2ms) begin transaction Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 17], ["adjustable_type", "Spree::LineItem"]] SQL (3.0ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 48]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 17]] SQL (0.6ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-10 17:51:50.514795' WHERE "spree_line_items"."id" = 17 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 5]] SQL (0.9ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 17:51:50.521054' WHERE "spree_orders"."id" = 5 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 17], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 17], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 17], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 17], ["adjustable_type", "Spree::LineItem"]] SQL (0.3ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-10 17:51:50.532392' WHERE "spree_line_items"."id" = 17 Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."line_item_id" = ? [["line_item_id", 17]] SQL (1.0ms) DELETE FROM "spree_line_items" WHERE "spree_line_items"."id" = ? [["id", 17]] SQL (0.4ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 17:51:50.538495' WHERE "spree_orders"."id" = 5 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 5]] Spree::ReturnAuthorization Load (0.3ms) SELECT "spree_return_authorizations".* FROM "spree_return_authorizations" WHERE "spree_return_authorizations"."order_id" = ? [["order_id", 5]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 5], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 5]] SQL (0.3ms) DELETE FROM "spree_orders_promotions" WHERE "spree_orders_promotions"."order_id" = ? [["order_id", 5]] SQL (5.3ms) DELETE FROM "spree_orders" WHERE "spree_orders"."id" = ? [["id", 5]]  (23.1ms) commit transaction Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/allow_ssl_in_development_and_test' LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.5ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.5ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.5ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.6ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (8.6ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.5ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (9284.2ms) Completed 200 OK in 9914ms (Views: 9243.8ms | ActiveRecord: 227.9ms) Started GET "/assets/account/show.html" for 127.0.0.1 at 2015-02-10 12:52:00 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-10 12:53:11 -0500 Processing by Sprangular::AccountsController#show as JSON Spree::User Load (0.8ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Adjustment Load (0.7ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.5ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.6ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.3ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.7ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.5ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.6ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.7ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (3.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.7ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.5ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.4ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (11984.7ms) Completed 200 OK in 12067ms (Views: 11941.8ms | ActiveRecord: 79.1ms) Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-10 12:53:23 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.3ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.6ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (18.0ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (318.3ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.9ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1804.6ms) Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-10 12:53:25 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (1.0ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.5ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (234.4ms) Completed 200 OK in 305ms (Views: 257.5ms | ActiveRecord: 13.0ms) Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-10 12:53:25 -0500 Started GET "/assets/account/signin.html" for 127.0.0.1 at 2015-02-10 12:53:25 -0500 Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-10 12:53:26 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-10 12:53:26 -0500 Started POST "/spree/login.json" for 127.0.0.1 at 2015-02-10 12:55:41 -0500 Processing by Spree::UserSessionsController#create as JSON Parameters: {"spree_user"=>{"email"=>"spree@example.com", "password"=>"[FILTERED]"}} Spree::User Load (0.9ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Redirected to http://localhost:3000/ Filter chain halted as :require_no_authentication rendered or redirected Completed 302 Found in 18ms (ActiveRecord: 0.9ms) Started GET "/" for 127.0.0.1 at 2015-02-10 12:55:41 -0500 Processing by Sprangular::HomeController#index as JSON Spree::User Load (0.9ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.3ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (7781.7ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (7004.8ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (15837.3ms) Completed 500 Internal Server Error in 16132ms ActionView::Template::Error (Missing partial sprangular/shared/_templates with {:locale=>[:en], :formats=>[:json], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :slim, :rabl], :versions=>[:v10, :v9, :v8, :v7, :v6, :v5, :v4, :v3, :v2, :v1]}. Searched in: * "/home/josh/Projects/Dynamo/sprangular/spec/dummy/app/views" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree_gateway-003416462d5a/lib/views/backend" * "/home/josh/Projects/Dynamo/sprangular/app/views" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree_auth_devise-e2ee95e53de6/lib/views/frontend" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree_auth_devise-e2ee95e53de6/lib/views/backend" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/gems/devise-3.2.4/app/views" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/backend/app/views" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/core/app/views" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/gems/kaminari-0.16.1/app/views" ): 9: = csrf_meta_tags 10: = stylesheet_link_tag "application", media: "all" 11: 12: = render 'sprangular/shared/templates' 13: 14: body(ng-class="status.bodyClasses") 15: #initializing(ng-hide='status.initialized' ng-cloak) app/views/layouts/sprangular/application.slim:12:in `_e93e72b14ac4af3dc0ca86e611481bac' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.2ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (2.3ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (241.9ms) Started POST "/spree/login.json" for 127.0.0.1 at 2015-02-10 12:58:22 -0500 Processing by Spree::UserSessionsController#create as JSON Parameters: {"spree_user"=>{"email"=>"spree@example.com", "password"=>"[FILTERED]"}} Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Redirected to http://localhost:3000/ Filter chain halted as :require_no_authentication rendered or redirected Completed 302 Found in 65ms (ActiveRecord: 2.0ms) Started GET "/" for 127.0.0.1 at 2015-02-10 12:58:24 -0500 Processing by Sprangular::HomeController#index as JSON Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.4ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.5ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.6ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.5ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.5ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.4ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.5ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.5ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.5ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.5ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.8ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.5ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (1.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.5ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (8810.9ms) CACHE (0.1ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (7143.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (17220.7ms) Completed 500 Internal Server Error in 17615ms ActionView::Template::Error (Missing partial sprangular/shared/_templates with {:locale=>[:en], :formats=>[:json], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :slim, :rabl], :versions=>[:v10, :v9, :v8, :v7, :v6, :v5, :v4, :v3, :v2, :v1]}. Searched in: * "/home/josh/Projects/Dynamo/sprangular/spec/dummy/app/views" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree_gateway-003416462d5a/lib/views/backend" * "/home/josh/Projects/Dynamo/sprangular/app/views" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree_auth_devise-e2ee95e53de6/lib/views/frontend" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree_auth_devise-e2ee95e53de6/lib/views/backend" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/gems/devise-3.2.4/app/views" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/backend/app/views" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/core/app/views" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/gems/kaminari-0.16.1/app/views" ): 9: = csrf_meta_tags 10: = stylesheet_link_tag "application", media: "all" 11: 12: = render 'sprangular/shared/templates' 13: 14: body(ng-class="status.bodyClasses") 15: #initializing(ng-hide='status.initialized' ng-cloak) app/views/layouts/sprangular/application.slim:12:in `_e93e72b14ac4af3dc0ca86e611481bac' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.7ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (2.7ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (205.7ms) Started POST "/spree/login.json" for 127.0.0.1 at 2015-02-10 12:58:51 -0500 Processing by Spree::UserSessionsController#create as JSON Parameters: {"spree_user"=>{"email"=>"spree@example.com", "password"=>"[FILTERED]"}} Spree::User Load (0.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Redirected to http://localhost:3000/ Filter chain halted as :require_no_authentication rendered or redirected Completed 302 Found in 8ms (ActiveRecord: 0.7ms) Started GET "/" for 127.0.0.1 at 2015-02-10 12:58:51 -0500 Processing by Sprangular::HomeController#index as JSON Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.5ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.5ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.7ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (1.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (1.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (1.5ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (1.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (1.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.5ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.5ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (8465.3ms) CACHE (0.1ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6998.5ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (16585.8ms) Completed 500 Internal Server Error in 16838ms ActionView::Template::Error (Missing partial sprangular/shared/_templates with {:locale=>[:en], :formats=>[:json], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :slim, :rabl], :versions=>[:v10, :v9, :v8, :v7, :v6, :v5, :v4, :v3, :v2, :v1]}. Searched in: * "/home/josh/Projects/Dynamo/sprangular/spec/dummy/app/views" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree_gateway-003416462d5a/lib/views/backend" * "/home/josh/Projects/Dynamo/sprangular/app/views" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree_auth_devise-e2ee95e53de6/lib/views/frontend" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree_auth_devise-e2ee95e53de6/lib/views/backend" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/gems/devise-3.2.4/app/views" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/backend/app/views" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/core/app/views" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/gems/kaminari-0.16.1/app/views" ): 9: = csrf_meta_tags 10: = stylesheet_link_tag "application", media: "all" 11: 12: = render 'sprangular/shared/templates' 13: 14: body(ng-class="status.bodyClasses") 15: #initializing(ng-hide='status.initialized' ng-cloak) app/views/layouts/sprangular/application.slim:12:in `_e93e72b14ac4af3dc0ca86e611481bac' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.2ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (2.9ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (188.2ms) Started POST "/spree/login.json" for 127.0.0.1 at 2015-02-10 12:59:22 -0500 Processing by Spree::UserSessionsController#create as JSON Parameters: {"spree_user"=>{"email"=>"test@example.com", "password"=>"[FILTERED]"}} Spree::User Load (1.0ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Redirected to http://localhost:3000/ Filter chain halted as :require_no_authentication rendered or redirected Completed 302 Found in 11ms (ActiveRecord: 1.0ms) Started GET "/" for 127.0.0.1 at 2015-02-10 12:59:22 -0500 Processing by Sprangular::HomeController#index as JSON Spree::User Load (0.8ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.9ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.5ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.7ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (8057.5ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (7003.1ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (16149.3ms) Completed 500 Internal Server Error in 16407ms ActionView::Template::Error (Missing partial sprangular/shared/_templates with {:locale=>[:en], :formats=>[:json], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :slim, :rabl], :versions=>[:v10, :v9, :v8, :v7, :v6, :v5, :v4, :v3, :v2, :v1]}. Searched in: * "/home/josh/Projects/Dynamo/sprangular/spec/dummy/app/views" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree_gateway-003416462d5a/lib/views/backend" * "/home/josh/Projects/Dynamo/sprangular/app/views" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree_auth_devise-e2ee95e53de6/lib/views/frontend" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree_auth_devise-e2ee95e53de6/lib/views/backend" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/gems/devise-3.2.4/app/views" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/backend/app/views" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/core/app/views" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/gems/kaminari-0.16.1/app/views" ): 9: = csrf_meta_tags 10: = stylesheet_link_tag "application", media: "all" 11: 12: = render 'sprangular/shared/templates' 13: 14: body(ng-class="status.bodyClasses") 15: #initializing(ng-hide='status.initialized' ng-cloak) app/views/layouts/sprangular/application.slim:12:in `_e93e72b14ac4af3dc0ca86e611481bac' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.7ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (2.3ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (187.2ms) Started POST "/spree/login.json" for 127.0.0.1 at 2015-02-10 13:00:01 -0500 Processing by Spree::UserSessionsController#create as JSON Parameters: {"spree_user"=>{"email"=>"test@example.com", "password"=>"[FILTERED]"}} Spree::User Load (0.5ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Redirected to http://localhost:3000/ Filter chain halted as :require_no_authentication rendered or redirected Completed 302 Found in 76ms (ActiveRecord: 1.8ms) Started GET "/" for 127.0.0.1 at 2015-02-10 13:00:04 -0500 Processing by Sprangular::HomeController#index as JSON Spree::User Load (0.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.8ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.4ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.8ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.4ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.6ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.6ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.4ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.6ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.6ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.6ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.5ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.5ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.8ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.5ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.6ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.6ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.5ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (1.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (9281.1ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (7468.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (17885.9ms) Completed 500 Internal Server Error in 18309ms ActionView::Template::Error (Missing partial sprangular/shared/_templates with {:locale=>[:en], :formats=>[:json], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :slim, :rabl], :versions=>[:v10, :v9, :v8, :v7, :v6, :v5, :v4, :v3, :v2, :v1]}. Searched in: * "/home/josh/Projects/Dynamo/sprangular/spec/dummy/app/views" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree_gateway-003416462d5a/lib/views/backend" * "/home/josh/Projects/Dynamo/sprangular/app/views" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree_auth_devise-e2ee95e53de6/lib/views/frontend" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree_auth_devise-e2ee95e53de6/lib/views/backend" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/gems/devise-3.2.4/app/views" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/backend/app/views" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/core/app/views" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/gems/kaminari-0.16.1/app/views" ): 9: = csrf_meta_tags 10: = stylesheet_link_tag "application", media: "all" 11: 12: = render 'sprangular/shared/templates' 13: 14: body(ng-class="status.bodyClasses") 15: #initializing(ng-hide='status.initialized' ng-cloak) app/views/layouts/sprangular/application.slim:12:in `_e93e72b14ac4af3dc0ca86e611481bac' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.8ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (2.7ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (188.4ms) Started POST "/spree/login.json" for 127.0.0.1 at 2015-02-10 13:01:30 -0500 Processing by Spree::UserSessionsController#create as JSON Parameters: {"spree_user"=>{"email"=>"test@example.com", "password"=>"[FILTERED]"}} Spree::User Load (0.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Redirected to http://localhost:3000/ Filter chain halted as :require_no_authentication rendered or redirected Completed 302 Found in 65ms (ActiveRecord: 2.1ms) Started GET "/" for 127.0.0.1 at 2015-02-10 13:01:33 -0500 Processing by Sprangular::HomeController#index as JSON Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.5ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.7ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.4ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.5ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.4ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.4ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (1.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.6ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.4ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.5ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.8ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.5ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (1.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.6ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.8ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.5ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (9047.1ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6992.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (17184.4ms) Completed 500 Internal Server Error in 17769ms ActionView::Template::Error (Missing partial sprangular/shared/_templates with {:locale=>[:en], :formats=>[:json], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :slim, :rabl], :versions=>[:v10, :v9, :v8, :v7, :v6, :v5, :v4, :v3, :v2, :v1]}. Searched in: * "/home/josh/Projects/Dynamo/sprangular/spec/dummy/app/views" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree_gateway-003416462d5a/lib/views/backend" * "/home/josh/Projects/Dynamo/sprangular/app/views" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree_auth_devise-e2ee95e53de6/lib/views/frontend" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree_auth_devise-e2ee95e53de6/lib/views/backend" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/gems/devise-3.2.4/app/views" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/backend/app/views" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/api/app/views" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/bundler/gems/spree-6aa500c4cade/core/app/views" * "/home/josh/.rvm/gems/ruby-2.0.0-p481/gems/kaminari-0.16.1/app/views" ): 9: = csrf_meta_tags 10: = stylesheet_link_tag "application", media: "all" 11: 12: = render 'sprangular/shared/templates' 13: 14: body(ng-class="status.bodyClasses") 15: #initializing(ng-hide='status.initialized' ng-cloak) app/views/layouts/sprangular/application.slim:12:in `_e93e72b14ac4af3dc0ca86e611481bac' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.2ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (2.4ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (187.6ms) Started GET "/" for 127.0.0.1 at 2015-02-10 13:01:55 -0500 Processing by Sprangular::HomeController#index as HTML Spree::User Load (0.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Adjustment Load (0.7ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.6ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (8131.6ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6995.5ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (16127.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (505.3ms) Spree::Tracker Load (0.3ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (7.2ms) Completed 200 OK in 20756ms (Views: 20672.6ms | ActiveRecord: 58.2ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-10 13:02:17 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:17 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:17 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-10 13:02:17 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:17 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:17 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:17 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:18 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:18 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:18 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:18 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:18 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:18 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:18 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:18 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:18 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:19 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:19 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:19 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:19 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:19 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:19 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:19 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:19 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:19 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:19 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:19 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:20 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:20 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:20 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:20 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:20 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:20 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:20 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:20 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:20 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:20 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:20 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:20 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:21 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:21 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:21 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:21 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:21 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:21 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:21 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:21 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:21 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:21 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:21 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:22 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:22 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:22 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:22 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:22 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:22 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:22 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:22 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:22 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:22 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:23 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:23 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:23 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:23 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:23 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:23 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:23 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:23 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:23 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:23 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:23 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:23 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:23 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:23 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:24 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:24 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:24 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:24 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:24 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:24 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:24 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:24 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:24 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:24 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:24 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:25 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:25 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-10 13:02:25 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-10 13:03:50 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-10 13:03:50 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (0.8ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (335.9ms) Completed 200 OK in 436ms (Views: 355.5ms | ActiveRecord: 16.0ms) Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-10 13:03:50 -0500 Started GET "/api/products?page=1&per_page=8" for 127.0.0.1 at 2015-02-10 13:03:51 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"8"} Spree::User Load (0.9ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (1.1ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-10 18:03:51.227003') AND ("spree_products".available_on <= '2015-02-10 18:03:51.229079') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0) subquery_for_count  (1.1ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-10 18:03:51.227003') AND ("spree_products".available_on <= '2015-02-10 18:03:51.229079') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (0.9ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-10 18:03:51.227003') AND ("spree_products".available_on <= '2015-02-10 18:03:51.229079') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0 Spree::ProductOptionType Load (0.6ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.5ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Image Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.3ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Price Load (0.6ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::ProductProperty Load (1.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY spree_product_properties.position Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_variants".position ASC Spree::Image Load (1.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.5ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (5332.9ms) Completed 200 OK in 5407ms (Views: 5320.6ms | ActiveRecord: 47.4ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-10 13:03:56 -0500 Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-10 13:03:56 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.2ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.1ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (13.5ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (217.5ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (4.0ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1394.1ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-10 13:03:58 -0500 Started GET "/assets/account/show.html" for 127.0.0.1 at 2015-02-10 13:03:58 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-10 13:03:58 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1:5:5" for 127.0.0.1 at 2015-02-10 13:04:09 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1:5:5" for 127.0.0.1 at 2015-02-10 13:06:43 -0500 Started GET "/" for 127.0.0.1 at 2015-02-10 13:07:13 -0500 Processing by Sprangular::HomeController#index as HTML Spree::User Load (0.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.7ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (7388.4ms) CACHE (0.1ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6844.0ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (15312.5ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (319.6ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.3ms) Completed 200 OK in 21616ms (Views: 21539.5ms | ActiveRecord: 52.5ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-10 13:07:36 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-10 13:07:36 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:36 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:36 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:36 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:37 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:37 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:37 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:37 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:37 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:37 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:37 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:37 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:37 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:37 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:37 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:37 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:37 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:38 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:38 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:38 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:38 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:38 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:38 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:38 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:38 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:38 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:39 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:39 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:39 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:39 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:39 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:39 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:39 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:39 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:39 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:39 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:39 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:39 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:39 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:40 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:40 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:40 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:40 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:40 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:40 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:40 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:40 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:40 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:40 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:40 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:40 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:40 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:41 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:41 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:41 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:41 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:41 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:41 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:41 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:41 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:41 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:41 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:41 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:41 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:41 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:42 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:42 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:42 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:42 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:42 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:42 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:42 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:42 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:42 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:42 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:42 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:42 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:42 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:42 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:43 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:43 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:43 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:43 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:43 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:43 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:43 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-10 13:07:44 -0500 Started GET "/assets/account/show.html" for 127.0.0.1 at 2015-02-10 13:07:45 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-10 13:07:45 -0500 Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-10 13:07:45 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-10 13:07:45 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.5ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (1.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (294.6ms) Completed 200 OK in 353ms (Views: 316.7ms | ActiveRecord: 13.2ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-10 13:07:45 -0500 Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-10 13:07:45 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.6ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.1ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (14.8ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (368.8ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.3ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1322.8ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-10 13:07:47 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-10 13:07:47 -0500 Processing by Sprangular::AccountsController#show as JSON Spree::User Load (0.5ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.1ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.5ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Product Load (0.7ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (1.7ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (7979.0ms) Completed 200 OK in 8030ms (Views: 7949.1ms | ActiveRecord: 53.6ms) Started GET "/assets/account/edit.html" for 127.0.0.1 at 2015-02-10 13:07:55 -0500 Started GET "/assets/credit_cards/index.html" for 127.0.0.1 at 2015-02-10 13:07:57 -0500 Started GET "/assets/addresses/index.html" for 127.0.0.1 at 2015-02-10 13:07:57 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-10 13:07:57 -0500 Started GET "/assets/orders/index.html" for 127.0.0.1 at 2015-02-10 13:07:58 -0500 Started GET "/assets/credit_cards/credit_card.html" for 127.0.0.1 at 2015-02-10 13:07:58 -0500 Started GET "/assets/addresses/address.html" for 127.0.0.1 at 2015-02-10 13:07:58 -0500 Started GET "/spree/logout" for 127.0.0.1 at 2015-02-10 13:08:21 -0500 Processing by Spree::UserSessionsController#destroy as JSON Spree::User Load (0.8ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = '79-uutPkfez40Dyc4jyOkw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::Order' AND "spree_adjustments"."adjustable_id" IN (6) ORDER BY spree_adjustments.created_at ASC Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) begin transaction  (0.2ms) commit transaction Completed 200 OK in 558ms (Views: 0.6ms | ActiveRecord: 10.1ms) Started GET "/api/products?page=1&per_page=8" for 127.0.0.1 at 2015-02-10 13:08:22 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"8"}  (0.6ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-10 18:08:23.050463') AND ("spree_products".available_on <= '2015-02-10 18:08:23.051947') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0) subquery_for_count  (0.7ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-10 18:08:23.050463') AND ("spree_products".available_on <= '2015-02-10 18:08:23.051947') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (1.0ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-10 18:08:23.050463') AND ("spree_products".available_on <= '2015-02-10 18:08:23.051947') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Image Load (1.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.3ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Price Load (0.9ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::ProductProperty Load (1.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY spree_product_properties.position Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_variants".position ASC Spree::Image Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.7ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.7ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.6ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (6095.2ms) Completed 200 OK in 6218ms (Views: 6055.7ms | ActiveRecord: 60.2ms) Started GET "/assets/account/signin.html" for 127.0.0.1 at 2015-02-10 13:08:31 -0500 Started POST "/spree/login.json" for 127.0.0.1 at 2015-02-10 13:08:33 -0500 Processing by Spree::UserSessionsController#create as JSON Parameters: {"spree_user"=>{"email"=>"spree@example.com", "password"=>"[FILTERED]"}} Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."email" = 'spree@example.com' ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'z9L1eVQu3I-74LO_SQfaOQ' AND "spree_orders"."user_id" IS NULL  (0.1ms) begin transaction SQL (1.1ms) UPDATE "spree_users" SET "current_sign_in_at" = ?, "last_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "spree_users"."id" = 1 [["current_sign_in_at", "2015-02-10 18:08:33.760521"], ["last_sign_in_at", "2015-02-10 17:51:50.192916"], ["sign_in_count", 4], ["updated_at", "2015-02-10 18:08:33.762590"]]  (18.9ms) commit transaction Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'z9L1eVQu3I-74LO_SQfaOQ' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]] Spree::Order Load (1.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.5ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.5ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.7ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.4ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.5ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.6ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.4ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.4ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.8ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.4ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.4ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.8ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.6ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (1.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (1.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (8777.4ms) Completed 200 OK in 8872ms (Views: 8729.0ms | ActiveRecord: 95.7ms) Started GET "/api/products?page=1&per_page=8" for 127.0.0.1 at 2015-02-10 13:08:42 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"8"} Spree::User Load (1.0ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (1.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'z9L1eVQu3I-74LO_SQfaOQ' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.4ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.8ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-10 18:08:42.832663') AND ("spree_products".available_on <= '2015-02-10 18:08:42.833926') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0) subquery_for_count  (0.7ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-10 18:08:42.832663') AND ("spree_products".available_on <= '2015-02-10 18:08:42.833926') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (0.9ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-10 18:08:42.832663') AND ("spree_products".available_on <= '2015-02-10 18:08:42.833926') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0 Spree::ProductOptionType Load (0.6ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.5ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Image Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.4ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Price Load (0.9ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::ProductProperty Load (1.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY spree_product_properties.position Spree::Property Load (0.6ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_variants".position ASC Spree::Image Load (1.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.5ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.7ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (5346.9ms) Completed 200 OK in 5420ms (Views: 5323.6ms | ActiveRecord: 49.9ms) Started GET "/api/account" for 127.0.0.1 at 2015-02-10 13:08:51 -0500 Processing by Sprangular::AccountsController#show as JSON Spree::User Load (0.9ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'z9L1eVQu3I-74LO_SQfaOQ' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.7ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.9ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.4ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.6ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.4ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (8143.4ms) Completed 200 OK in 8214ms (Views: 8117.7ms | ActiveRecord: 55.3ms) Started GET "/" for 127.0.0.1 at 2015-02-10 13:09:00 -0500 Processing by Sprangular::HomeController#index as HTML Spree::User Load (0.9ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'z9L1eVQu3I-74LO_SQfaOQ' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.7ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (7874.6ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6684.1ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (15941.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (487.7ms) Spree::Tracker Load (0.3ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (7.1ms) Completed 200 OK in 20536ms (Views: 20448.5ms | ActiveRecord: 55.8ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-10 13:09:21 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-10 13:09:21 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:21 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:21 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:22 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:22 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:22 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:22 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:22 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:22 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:22 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:22 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:22 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:22 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:23 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:23 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:23 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:23 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:23 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:23 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:23 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:23 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:23 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:23 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:23 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:23 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:23 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:24 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:24 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:24 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:24 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:24 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:24 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:24 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:24 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:24 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:24 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:24 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:24 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:25 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:25 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:25 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:25 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:25 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:25 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:25 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:25 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:25 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:25 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:25 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:26 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:26 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:26 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:26 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:26 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:26 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:26 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:26 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:26 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:26 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:26 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:26 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:26 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:26 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:26 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:27 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:27 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:27 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:27 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:27 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:27 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:27 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:27 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:27 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:27 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:27 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:27 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:28 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:28 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:28 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:28 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:28 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:28 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:28 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:28 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:28 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:28 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-10 13:09:28 -0500 Started GET "/assets/account/show.html" for 127.0.0.1 at 2015-02-10 13:09:29 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-10 13:09:29 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-10 13:09:29 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (0.8ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'z9L1eVQu3I-74LO_SQfaOQ' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.5ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (266.8ms) Completed 200 OK in 355ms (Views: 293.4ms | ActiveRecord: 11.7ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-10 13:09:30 -0500 Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-10 13:09:30 -0500 Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-10 13:09:30 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.5ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (3.3ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (207.6ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (219.1ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.3ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1446.5ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-10 13:09:32 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-10 13:09:32 -0500 Processing by Sprangular::AccountsController#show as JSON Spree::User Load (0.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'z9L1eVQu3I-74LO_SQfaOQ' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.1ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.6ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (7939.7ms) Completed 200 OK in 7999ms (Views: 7912.9ms | ActiveRecord: 49.0ms) Started GET "/assets/account/edit.html" for 127.0.0.1 at 2015-02-10 13:09:40 -0500 Started GET "/assets/credit_cards/index.html" for 127.0.0.1 at 2015-02-10 13:09:40 -0500 Started GET "/assets/addresses/index.html" for 127.0.0.1 at 2015-02-10 13:09:40 -0500 Started GET "/assets/orders/index.html" for 127.0.0.1 at 2015-02-10 13:09:40 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-10 13:09:40 -0500 Started GET "/assets/credit_cards/credit_card.html" for 127.0.0.1 at 2015-02-10 13:09:40 -0500 Started GET "/assets/addresses/address.html" for 127.0.0.1 at 2015-02-10 13:09:40 -0500 Started GET "/" for 127.0.0.1 at 2015-02-10 13:11:31 -0500 Processing by Sprangular::HomeController#index as HTML Spree::User Load (0.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'z9L1eVQu3I-74LO_SQfaOQ' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.1ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.6ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (7908.5ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6923.6ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (16106.1ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (502.4ms) Spree::Tracker Load (0.5ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.6ms) Completed 200 OK in 22457ms (Views: 22382.8ms | ActiveRecord: 53.7ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-10 13:11:54 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-10 13:11:54 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:54 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:54 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:54 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:54 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:54 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:54 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:55 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:55 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:55 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:55 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:55 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:55 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:55 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:55 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:55 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:55 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:55 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:55 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:56 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:56 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:56 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:56 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:56 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:56 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:56 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:56 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:56 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:56 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:56 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:57 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:57 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:57 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:57 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:57 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:57 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:57 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:57 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:57 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:57 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:57 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:57 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:58 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:58 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:58 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:58 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:58 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:58 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:58 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:58 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:58 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:58 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:58 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:58 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:58 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:58 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:59 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:59 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:59 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:59 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:59 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:59 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:59 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:59 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:59 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:59 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:59 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-10 13:11:59 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-10 13:12:00 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-10 13:12:00 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-10 13:12:00 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-10 13:12:00 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-10 13:12:00 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-10 13:12:00 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-10 13:12:00 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-10 13:12:00 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-10 13:12:00 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-10 13:12:00 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-10 13:12:00 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-10 13:12:00 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-10 13:12:01 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-10 13:12:01 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-10 13:12:01 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-10 13:12:01 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-10 13:12:01 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-10 13:12:01 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-10 13:12:01 -0500 Started GET "/assets/account/show.html" for 127.0.0.1 at 2015-02-10 13:12:02 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-10 13:12:02 -0500 Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-10 13:12:03 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-10 13:12:03 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (0.9ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'z9L1eVQu3I-74LO_SQfaOQ' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.5ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (278.3ms) Completed 200 OK in 347ms (Views: 308.4ms | ActiveRecord: 12.3ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-10 13:12:03 -0500 Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-10 13:12:03 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.8ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.5ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (12.6ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (207.4ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.7ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1531.7ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-10 13:12:05 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-10 13:12:05 -0500 Processing by Sprangular::AccountsController#show as JSON Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'z9L1eVQu3I-74LO_SQfaOQ' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.4ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (8135.2ms) Completed 200 OK in 8193ms (Views: 8106.0ms | ActiveRecord: 53.0ms) Started GET "/assets/account/edit.html" for 127.0.0.1 at 2015-02-10 13:12:13 -0500 Started GET "/assets/credit_cards/index.html" for 127.0.0.1 at 2015-02-10 13:12:13 -0500 Started GET "/assets/addresses/index.html" for 127.0.0.1 at 2015-02-10 13:12:13 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-10 13:12:14 -0500 Started GET "/assets/orders/index.html" for 127.0.0.1 at 2015-02-10 13:12:14 -0500 Started GET "/assets/credit_cards/credit_card.html" for 127.0.0.1 at 2015-02-10 13:12:14 -0500 Started GET "/assets/addresses/address.html" for 127.0.0.1 at 2015-02-10 13:12:14 -0500 Started GET "/spree/logout" for 127.0.0.1 at 2015-02-10 13:29:35 -0500 Processing by Spree::UserSessionsController#destroy as JSON Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'z9L1eVQu3I-74LO_SQfaOQ' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (1.4ms) begin transaction  (0.2ms) commit transaction Completed 200 OK in 218ms (Views: 0.5ms | ActiveRecord: 4.5ms) Started GET "/api/products?page=1&per_page=8" for 127.0.0.1 at 2015-02-10 13:29:35 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"8"}  (2.1ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-10 18:29:35.856133') AND ("spree_products".available_on <= '2015-02-10 18:29:35.861237') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0) subquery_for_count  (1.0ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-10 18:29:35.856133') AND ("spree_products".available_on <= '2015-02-10 18:29:35.861237') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (1.6ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-10 18:29:35.856133') AND ("spree_products".available_on <= '2015-02-10 18:29:35.861237') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0 Spree::ProductOptionType Load (0.6ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.8ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (2.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Image Load (1.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.6ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Price Load (1.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::ProductProperty Load (1.8ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY spree_product_properties.position Spree::Property Load (0.6ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_variants".position ASC Spree::Image Load (1.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.6ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.9ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.9ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (5588.9ms) Completed 200 OK in 5659ms (Views: 5576.0ms | ActiveRecord: 52.2ms) Started GET "/assets/account/signin.html" for 127.0.0.1 at 2015-02-10 13:29:51 -0500 Started POST "/spree/login.json" for 127.0.0.1 at 2015-02-10 13:29:58 -0500 Processing by Spree::UserSessionsController#create as JSON Parameters: {"spree_user"=>{"email"=>"test@example.com", "password"=>"[FILTERED]"}} Spree::User Load (0.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."email" = 'test@example.com' ORDER BY "spree_users"."id" ASC LIMIT 1 Completed 422 Unprocessable Entity in 13ms (Views: 0.7ms | ActiveRecord: 0.7ms) Started POST "/spree/login.json" for 127.0.0.1 at 2015-02-10 13:30:04 -0500 Processing by Spree::UserSessionsController#create as JSON Parameters: {"spree_user"=>{"email"=>"spree@example.com", "password"=>"[FILTERED]"}} Spree::User Load (0.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."email" = 'spree@example.com' ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'Z0RspTrAiccGE5ivuJAjkQ' AND "spree_orders"."user_id" IS NULL  (0.2ms) begin transaction SQL (0.9ms) UPDATE "spree_users" SET "current_sign_in_at" = ?, "last_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "spree_users"."id" = 1 [["current_sign_in_at", "2015-02-10 18:30:04.208489"], ["last_sign_in_at", "2015-02-10 18:08:33.760521"], ["sign_in_count", 5], ["updated_at", "2015-02-10 18:30:04.210452"]]  (26.2ms) commit transaction Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'Z0RspTrAiccGE5ivuJAjkQ' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]] Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.5ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.7ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (8342.0ms) Completed 200 OK in 8429ms (Views: 8310.2ms | ActiveRecord: 84.0ms) Started GET "/api/account" for 127.0.0.1 at 2015-02-10 13:30:12 -0500 Processing by Sprangular::AccountsController#show as JSON Spree::User Load (1.1ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'Z0RspTrAiccGE5ivuJAjkQ' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.4ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.7ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.5ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.5ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.7ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.8ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (1.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.9ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.9ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.9ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (9463.7ms) Completed 200 OK in 9534ms (Views: 9433.1ms | ActiveRecord: 65.9ms) Started GET "/spree/logout" for 127.0.0.1 at 2015-02-10 13:32:13 -0500 Processing by Spree::UserSessionsController#destroy as JSON Spree::User Load (1.0ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'Z0RspTrAiccGE5ivuJAjkQ' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) begin transaction  (0.1ms) commit transaction Completed 200 OK in 56ms (Views: 0.6ms | ActiveRecord: 4.0ms) Started GET "/api/products?page=1&per_page=8" for 127.0.0.1 at 2015-02-10 13:32:13 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"8"}  (2.0ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-10 18:32:13.931554') AND ("spree_products".available_on <= '2015-02-10 18:32:13.936636') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0) subquery_for_count  (1.0ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-10 18:32:13.931554') AND ("spree_products".available_on <= '2015-02-10 18:32:13.936636') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (1.4ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-10 18:32:13.931554') AND ("spree_products".available_on <= '2015-02-10 18:32:13.936636') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0 Spree::ProductOptionType Load (0.8ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::OptionType Load (0.8ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.7ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (1.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Image Load (1.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.6ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Price Load (1.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::ProductProperty Load (2.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY spree_product_properties.position Spree::Property Load (1.7ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (1.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_variants".position ASC Spree::Image Load (2.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.9ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.8ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.7ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (1.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (5606.5ms) Completed 200 OK in 5657ms (Views: 5581.5ms | ActiveRecord: 56.7ms) Started GET "/?a" for 127.0.0.1 at 2015-02-10 13:32:22 -0500 Processing by Sprangular::HomeController#index as HTML Parameters: {"a"=>nil} Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'A4Y2vj5PnoteR0bHQfR31g' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (915.9ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (504.0ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (10.5ms) Completed 200 OK in 5457ms (Views: 5443.4ms | ActiveRecord: 2.3ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-10 13:32:28 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:29 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-10 13:32:29 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:29 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:29 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:29 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:29 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:29 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:29 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:29 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:29 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:29 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:29 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:30 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:30 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:30 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:30 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:30 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:30 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:30 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:30 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:30 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:30 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:30 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:30 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:30 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:31 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:31 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:31 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:31 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:31 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:31 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:31 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:31 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:31 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:31 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:31 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:31 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:31 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:32 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:32 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:32 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:32 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:32 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:32 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:32 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:32 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:32 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:32 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:32 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:32 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:33 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:33 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:33 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:33 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:33 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:33 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:33 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:33 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:33 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:33 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:33 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:33 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:34 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:34 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:34 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:34 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:34 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:34 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:34 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:34 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:34 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:34 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:34 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:34 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:34 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:34 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:34 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:35 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:35 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:35 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:35 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:35 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:35 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:35 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:35 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:35 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-10 13:32:35 -0500 Started GET "/api/cart.json" for 127.0.0.1 at 2015-02-10 13:32:36 -0500 Processing by Sprangular::CartsController#show as JSON Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'A4Y2vj5PnoteR0bHQfR31g' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" IS NULL LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/not_found.json.rabl (2.4ms) Completed 404 Not Found in 43ms (Views: 31.3ms | ActiveRecord: 1.4ms) Started GET "/api/account" for 127.0.0.1 at 2015-02-10 13:32:36 -0500 Processing by Sprangular::AccountsController#show as JSON Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/errors/unauthorized.json.rabl (1.7ms) Filter chain halted as :check_authorization rendered or redirected Completed 401 Unauthorized in 364ms (Views: 351.1ms | ActiveRecord: 0.0ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-10 13:32:37 -0500 Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-10 13:32:37 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-10 13:32:37 -0500 Started GET "/assets/account/signin.html" for 127.0.0.1 at 2015-02-10 13:32:37 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-10 13:32:37 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Taxonomy Load (0.7ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (2.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (224.1ms) Completed 200 OK in 261ms (Views: 243.3ms | ActiveRecord: 11.2ms) Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-10 13:32:37 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (5.3ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.8ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (23.0ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (224.8ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (5.1ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1727.6ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-10 13:32:39 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-10 13:32:39 -0500 Started POST "/spree/login.json" for 127.0.0.1 at 2015-02-10 13:32:40 -0500 Processing by Spree::UserSessionsController#create as JSON Parameters: {"spree_user"=>{"email"=>"spree@example.com", "password"=>"[FILTERED]"}} Spree::User Load (1.0ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."email" = 'spree@example.com' ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Order Load (1.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'A4Y2vj5PnoteR0bHQfR31g' AND "spree_orders"."user_id" IS NULL  (0.3ms) begin transaction SQL (0.9ms) UPDATE "spree_users" SET "current_sign_in_at" = ?, "last_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "spree_users"."id" = 1 [["current_sign_in_at", "2015-02-10 18:32:40.648905"], ["last_sign_in_at", "2015-02-10 18:30:04.208489"], ["sign_in_count", 6], ["updated_at", "2015-02-10 18:32:40.651724"]]  (19.9ms) commit transaction Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'A4Y2vj5PnoteR0bHQfR31g' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]] Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.6ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.5ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.7ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.5ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (8086.7ms) Completed 200 OK in 8171ms (Views: 8059.4ms | ActiveRecord: 73.7ms) Started GET "/assets/account/show.html" for 127.0.0.1 at 2015-02-10 13:32:48 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-10 13:32:49 -0500 Processing by Sprangular::AccountsController#show as JSON Spree::User Load (1.1ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.8ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'A4Y2vj5PnoteR0bHQfR31g' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (1.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.5ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.3ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (1.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (1.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (1.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.9ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (1.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (1.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (1.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (9741.4ms) Completed 200 OK in 9829ms (Views: 9706.2ms | ActiveRecord: 73.3ms) Started GET "/assets/account/edit.html" for 127.0.0.1 at 2015-02-10 13:32:59 -0500 Started GET "/assets/credit_cards/index.html" for 127.0.0.1 at 2015-02-10 13:32:59 -0500 Started GET "/assets/addresses/index.html" for 127.0.0.1 at 2015-02-10 13:32:59 -0500 Started GET "/assets/orders/index.html" for 127.0.0.1 at 2015-02-10 13:32:59 -0500 Started GET "/assets/addresses/address.html" for 127.0.0.1 at 2015-02-10 13:32:59 -0500 Started GET "/assets/credit_cards/credit_card.html" for 127.0.0.1 at 2015-02-10 13:32:59 -0500 Started GET "/?a" for 127.0.0.1 at 2015-02-10 14:22:00 -0500 Processing by Sprangular::HomeController#index as HTML Parameters: {"a"=>nil} Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'A4Y2vj5PnoteR0bHQfR31g' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.7ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (1.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (7769.3ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6903.8ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (15795.1ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (519.3ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.2ms) Completed 200 OK in 22902ms (Views: 22829.0ms | ActiveRecord: 54.0ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-10 14:22:23 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:24 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-10 14:22:24 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:24 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:24 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:24 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:24 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:24 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:24 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:24 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:24 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:24 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:24 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:25 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:25 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:25 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:25 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:25 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:25 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:25 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:25 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:25 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:25 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:26 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:26 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:26 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:26 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:26 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:26 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:26 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:26 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:26 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:26 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:26 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:26 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:27 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:27 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:27 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:27 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:27 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:27 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:27 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:27 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:27 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:27 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:27 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:27 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:27 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:27 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:28 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:28 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:28 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:28 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:28 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:28 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:29 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:29 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:29 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:29 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:29 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:29 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:29 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:30 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:30 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:30 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:30 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:30 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:30 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:30 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:31 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:31 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:31 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:31 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:31 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:31 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:32 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:32 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:32 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:32 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:32 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:32 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:32 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:33 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:33 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:33 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:33 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:33 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-10 14:22:33 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-10 14:22:36 -0500 Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-10 14:22:36 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-10 14:22:36 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (1.8ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (1.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (1.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'A4Y2vj5PnoteR0bHQfR31g' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (1.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (200.2ms) Completed 200 OK in 316ms (Views: 233.5ms | ActiveRecord: 15.5ms) Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-10 14:22:37 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.1ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.5ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (14.0ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (494.4ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.5ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1615.1ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-10 14:22:38 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-10 14:22:38 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-10 14:22:39 -0500 Started GET "/?a" for 127.0.0.1 at 2015-02-10 14:22:45 -0500 Processing by Sprangular::HomeController#index as HTML Parameters: {"a"=>nil} Spree::User Load (1.0ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'A4Y2vj5PnoteR0bHQfR31g' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.1ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (1.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (1.8ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.8ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (8440.1ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (6955.2ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (16471.5ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (504.5ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.2ms) Completed 200 OK in 23109ms (Views: 23025.5ms | ActiveRecord: 60.8ms) Started GET "/?a" for 127.0.0.1 at 2015-02-10 14:23:08 -0500 Processing by Sprangular::HomeController#index as HTML Parameters: {"a"=>nil} Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'A4Y2vj5PnoteR0bHQfR31g' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.1ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.4ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.6ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.7ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.8ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (1.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.4ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (8001.8ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (7299.6ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (16680.5ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (642.5ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.7ms) Completed 200 OK in 21952ms (Views: 21874.7ms | ActiveRecord: 57.9ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-10 14:23:31 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-10 14:23:31 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:31 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:31 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:31 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:31 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:31 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:31 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:31 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:31 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:32 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:32 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:32 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:32 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:32 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:32 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:32 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:32 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:32 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:32 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:33 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:33 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:33 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:33 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:33 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:33 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:33 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:33 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:33 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:33 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:33 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:33 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:33 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:33 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:33 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:34 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:34 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:34 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:34 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:34 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:34 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:34 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:34 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:34 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:34 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:34 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:34 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:35 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:35 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:35 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:35 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:35 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:35 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:35 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:35 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:35 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:35 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:35 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:35 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:36 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:36 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:36 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:36 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:36 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:36 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:36 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:36 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:36 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:36 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:36 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:36 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:36 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:37 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:37 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:37 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:37 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:37 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:37 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:37 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:37 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:37 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:37 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:37 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:38 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:38 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:38 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:38 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-10 14:23:38 -0500 Started GET "/assets/account/show.html" for 127.0.0.1 at 2015-02-10 14:23:39 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-10 14:23:39 -0500 Processing by Sprangular::AccountsController#show as JSON Spree::User Load (0.9ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'A4Y2vj5PnoteR0bHQfR31g' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.3ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (1.0ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.5ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.6ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (1.6ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (1.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (1.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (1.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.5ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (8491.0ms) Completed 200 OK in 8578ms (Views: 8465.0ms | ActiveRecord: 61.3ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-10 14:23:48 -0500 Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-10 14:23:48 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-10 14:23:48 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (1.3ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'A4Y2vj5PnoteR0bHQfR31g' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.7ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (1.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (208.6ms) Completed 200 OK in 296ms (Views: 240.6ms | ActiveRecord: 13.4ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-10 14:23:48 -0500 Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-10 14:23:49 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.7ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.2ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (12.8ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (223.4ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.3ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1268.8ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-10 14:23:50 -0500 Started GET "/assets/account/edit.html" for 127.0.0.1 at 2015-02-10 14:23:50 -0500 Started GET "/assets/credit_cards/index.html" for 127.0.0.1 at 2015-02-10 14:23:50 -0500 Started GET "/assets/addresses/index.html" for 127.0.0.1 at 2015-02-10 14:23:51 -0500 Started GET "/assets/orders/index.html" for 127.0.0.1 at 2015-02-10 14:23:51 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-10 14:23:51 -0500 Started GET "/assets/credit_cards/credit_card.html" for 127.0.0.1 at 2015-02-10 14:23:51 -0500 Started GET "/assets/addresses/address.html" for 127.0.0.1 at 2015-02-10 14:23:51 -0500 Started GET "/spree/logout" for 127.0.0.1 at 2015-02-10 14:23:54 -0500 Processing by Spree::UserSessionsController#destroy as JSON Spree::User Load (2.4ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (1.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'A4Y2vj5PnoteR0bHQfR31g' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) begin transaction  (0.2ms) commit transaction Completed 200 OK in 94ms (Views: 0.6ms | ActiveRecord: 6.0ms) Started GET "/api/products?page=1&per_page=8" for 127.0.0.1 at 2015-02-10 14:23:54 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"8"}  (1.9ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-10 19:23:55.008280') AND ("spree_products".available_on <= '2015-02-10 19:23:55.010086') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0) subquery_for_count  (1.6ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-10 19:23:55.008280') AND ("spree_products".available_on <= '2015-02-10 19:23:55.010086') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (1.3ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-10 19:23:55.008280') AND ("spree_products".available_on <= '2015-02-10 19:23:55.010086') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0 Spree::ProductOptionType Load (0.8ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::OptionType Load (1.7ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.9ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (1.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Image Load (1.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (1.5ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Price Load (1.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::ProductProperty Load (2.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY spree_product_properties.position Spree::Property Load (0.8ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (1.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_variants".position ASC Spree::Image Load (1.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.8ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.9ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (5714.6ms) Completed 200 OK in 5771ms (Views: 5698.8ms | ActiveRecord: 55.2ms) Started GET "/assets/account/signin.html" for 127.0.0.1 at 2015-02-10 14:24:03 -0500 Started POST "/spree/login.json" for 127.0.0.1 at 2015-02-10 14:24:04 -0500 Processing by Spree::UserSessionsController#create as JSON Parameters: {"spree_user"=>{"email"=>"spree@example.com", "password"=>"[FILTERED]"}} Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."email" = 'spree@example.com' ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."user_id" IS NULL  (0.1ms) begin transaction SQL (0.8ms) UPDATE "spree_users" SET "current_sign_in_at" = ?, "last_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "spree_users"."id" = 1 [["current_sign_in_at", "2015-02-10 19:24:04.874175"], ["last_sign_in_at", "2015-02-10 18:32:40.648905"], ["sign_in_count", 7], ["updated_at", "2015-02-10 19:24:04.875898"]]  (115.9ms) commit transaction Spree::Store Load (1.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]] Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.7ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.6ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (9583.6ms) Completed 200 OK in 9766ms (Views: 9547.7ms | ActiveRecord: 180.0ms) Started GET "/api/account" for 127.0.0.1 at 2015-02-10 14:24:14 -0500 Processing by Sprangular::AccountsController#show as JSON Spree::User Load (1.1ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (2.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.3ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.9ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.8ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.8ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.8ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.4ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.8ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (1.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.5ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (2.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.9ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (10764.9ms) Completed 200 OK in 10859ms (Views: 10721.6ms | ActiveRecord: 77.9ms) Started GET "/" for 127.0.0.1 at 2015-02-10 15:56:20 -0500 Processing by Sprangular::HomeController#index as HTML Spree::User Load (1.1ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.1ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.4ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.5ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.8ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (1.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (8985.4ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.9ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (10609.5ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (21046.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (608.0ms) Spree::Tracker Load (1.6ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (8.5ms) Completed 200 OK in 27130ms (Views: 27029.6ms | ActiveRecord: 66.6ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-10 15:56:48 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-10 15:56:48 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:48 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:48 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:48 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:48 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:49 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:49 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:49 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:49 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:49 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:49 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:49 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:49 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:49 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:49 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:50 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:50 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:50 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:50 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:50 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:50 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:50 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:50 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:50 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:50 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:51 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:51 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:51 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:51 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:51 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:51 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:51 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:51 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:51 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:52 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:52 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:52 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:52 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:52 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:52 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:52 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:52 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:52 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:53 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:53 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:53 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:53 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:53 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:53 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:53 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:53 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:53 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:53 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:54 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:54 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:54 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:54 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:54 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:54 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:54 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:54 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:54 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:54 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:54 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:55 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:55 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:55 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:55 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:55 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:55 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:55 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:55 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:55 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:55 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:56 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:56 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:56 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:56 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:56 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:56 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:56 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:56 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:56 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:56 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:56 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:56 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-10 15:56:56 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-10 15:56:58 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-10 15:56:58 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.5ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (438.8ms) Completed 200 OK in 505ms (Views: 471.1ms | ActiveRecord: 11.2ms) Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-10 15:56:59 -0500 Started GET "/api/products?page=1&per_page=8" for 127.0.0.1 at 2015-02-10 15:56:59 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"8"} Spree::User Load (0.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (1.0ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-10 20:56:59.268006') AND ("spree_products".available_on <= '2015-02-10 20:56:59.269211') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0) subquery_for_count  (0.8ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-10 20:56:59.268006') AND ("spree_products".available_on <= '2015-02-10 20:56:59.269211') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (0.9ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-10 20:56:59.268006') AND ("spree_products".available_on <= '2015-02-10 20:56:59.269211') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::OptionType Load (0.7ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.8ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Image Load (1.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.4ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Price Load (0.6ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::ProductProperty Load (1.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY spree_product_properties.position Spree::Property Load (0.9ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (1.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_variants".position ASC Spree::Image Load (1.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.7ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.7ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.9ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (1.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (6078.3ms) Completed 200 OK in 6125ms (Views: 6050.1ms | ActiveRecord: 52.6ms) Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-10 15:57:05 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.0ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.3ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (15.9ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (412.9ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (2.9ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (2064.4ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-10 15:57:07 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-10 15:57:07 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-10 15:57:07 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-10 16:04:43 -0500 Processing by Sprangular::AccountsController#show as JSON Spree::User Load (1.1ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.8ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (2.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (1.5ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.4ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.5ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.5ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.9ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.5ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.7ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.6ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.4ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::LineItem Load (0.5ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.8ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Payment Load (0.4ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.4ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.9ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.4ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.8ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.4ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (1.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.8ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (1.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (1.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (1.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (1.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.7ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.8ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.8ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.5ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.5ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (1.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.5ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.4ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.6ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.4ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.6ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (1.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (16113.3ms) Completed 200 OK in 16250ms (Views: 16057.1ms | ActiveRecord: 99.2ms) Started GET "/assets/account/show.html" for 127.0.0.1 at 2015-02-10 16:05:00 -0500 Started PUT "/api/checkouts/R079133342/quick_update" for 127.0.0.1 at 2015-02-10 16:05:00 -0500 Processing by Spree::Api::CheckoutsController#quick_update as JSON Parameters: {"order"=>{"use_billing"=>"true", "coupon_code"=>"", "ship_address_attributes"=>{"firstname"=>"Joshua", "lastname"=>"Nussbaum", "address1"=>"3447 Saint Dominique", "address2"=>"", "city"=>"Montreal", "phone"=>"5145910281", "zipcode"=>"H2X 2X5", "state_id"=>"434", "country_id"=>"38"}, "bill_address_attributes"=>{"firstname"=>"Joshua", "lastname"=>"Nussbaum", "address1"=>"3447 Saint Dominique", "address2"=>"", "city"=>"Montreal", "phone"=>"5145910281", "zipcode"=>"H2X 2X5", "state_id"=>"434", "country_id"=>"38"}, "payments_attributes"=>[{"payment_method_id"=>"1"}]}, "id"=>"R079133342"} Spree::User Load (1.3ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Order Load (6.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]]  (0.4ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Order Load (1.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1 Spree::LineItem Load (0.6ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]]  (0.8ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]]  (0.9ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]]  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]]  (0.8ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]]  (0.4ms) begin transaction Spree::Order Exists (0.8ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.4ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (6.1ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "cart"], ["updated_at", "2015-02-10 21:05:00.788792"]]  (32.1ms) commit transaction  (0.4ms) begin transaction Spree::Country Load (0.5ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Preference Load (1.6ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/address_requires_state' LIMIT 1 Spree::State Load (0.4ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (1.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Order Exists (0.5ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (8.5ms) INSERT INTO "spree_addresses" ("address1", "address2", "city", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "3447 Saint Dominique"], ["address2", ""], ["city", "Montreal"], ["country_id", 38], ["created_at", "2015-02-10 21:05:01.162388"], ["firstname", "Joshua"], ["lastname", "Nussbaum"], ["phone", "5145910281"], ["state_id", 434], ["updated_at", "2015-02-10 21:05:01.162388"], ["zipcode", "H2X 2X5"]] SQL (0.4ms) INSERT INTO "spree_addresses" ("address1", "address2", "city", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "3447 Saint Dominique"], ["address2", ""], ["city", "Montreal"], ["country_id", 38], ["created_at", "2015-02-10 21:05:01.180420"], ["firstname", "Joshua"], ["lastname", "Nussbaum"], ["phone", "5145910281"], ["state_id", 434], ["updated_at", "2015-02-10 21:05:01.180420"], ["zipcode", "H2X 2X5"]] SQL (6.8ms) UPDATE "spree_orders" SET "bill_address_id" = ?, "ship_address_id" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["bill_address_id", 13], ["ship_address_id", 14], ["updated_at", "2015-02-10 21:05:01.185744"]]  (21.9ms) commit transaction Spree::Shipment Exists (0.8ms) SELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? LIMIT 1 [["order_id", 6]] Spree::User Load (1.3ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = ? LIMIT 1 [["id", 1]]  (0.4ms) begin transaction Spree::Order Exists (0.6ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (1.7ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "address"], ["updated_at", "2015-02-10 21:05:01.299252"]]  (20.0ms) commit transaction  (0.3ms) begin transaction SQL (12.4ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-10 21:05:01.412925"], ["name", "order"], ["next_state", "address"], ["previous_state", "cart"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-10 21:05:01.412925"], ["user_id", 1]]  (25.6ms) commit transaction  (0.4ms) begin transaction Spree::Order Exists (0.8ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.3ms) commit transaction SQL (9.6ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 38) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 434)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::TaxRate Load (1.8ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.8ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.9ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (3.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.9ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.8ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::LineItem' AND "spree_adjustments"."adjustable_id" IN (18, 19, 20, 21) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' SQL (21.9ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 39.98 WHERE "spree_line_items"."id" = 18 Spree::Calculator Load (1.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]]  (0.4ms) begin transaction Spree::Order Load (1.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (6.6ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"], ["amount", 2.0], ["created_at", "2015-02-10 21:05:02.312240"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-10 21:05:02.312240"]] Spree::Adjustment Load (0.9ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.8ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (1.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.8ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.5ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.8ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.5ms) UPDATE "spree_adjustments" SET "amount" = 2.0, "updated_at" = '2015-02-10 21:05:02.388220' WHERE "spree_adjustments"."id" = 49 SQL (1.3ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.0, "adjustment_total" = 2.0, "updated_at" = '2015-02-10 21:05:02.408088' WHERE "spree_line_items"."id" = 18 SQL (0.6ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-10 21:05:02.414845' WHERE "spree_line_items"."id" = 18 SQL (1.0ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:05:02.419000' WHERE "spree_orders"."id" = 6  (19.8ms) commit transaction SQL (20.5ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 19.99 WHERE "spree_line_items"."id" = 19  (0.2ms) begin transaction Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (5.7ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"], ["amount", 1.0], ["created_at", "2015-02-10 21:05:02.487888"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-10 21:05:02.487888"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.4ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.6ms) UPDATE "spree_adjustments" SET "amount" = 1.0, "updated_at" = '2015-02-10 21:05:02.541106' WHERE "spree_adjustments"."id" = 50 SQL (1.3ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.0, "adjustment_total" = 1.0, "updated_at" = '2015-02-10 21:05:02.547076' WHERE "spree_line_items"."id" = 19 SQL (0.9ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-10 21:05:02.553407' WHERE "spree_line_items"."id" = 19 SQL (1.7ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:05:02.558212' WHERE "spree_orders"."id" = 6  (20.0ms) commit transaction SQL (17.6ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 39.98 WHERE "spree_line_items"."id" = 20  (0.2ms) begin transaction Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (5.6ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"], ["amount", 2.0], ["created_at", "2015-02-10 21:05:02.626158"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-10 21:05:02.626158"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.3ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.6ms) UPDATE "spree_adjustments" SET "amount" = 2.0, "updated_at" = '2015-02-10 21:05:02.677248' WHERE "spree_adjustments"."id" = 51 SQL (1.6ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.0, "adjustment_total" = 2.0, "updated_at" = '2015-02-10 21:05:02.682077' WHERE "spree_line_items"."id" = 20 SQL (1.0ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-10 21:05:02.689298' WHERE "spree_line_items"."id" = 20 SQL (1.9ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:05:02.695528' WHERE "spree_orders"."id" = 6  (30.8ms) commit transaction SQL (25.9ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 15.99 WHERE "spree_line_items"."id" = 21  (0.3ms) begin transaction Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (6.3ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"], ["amount", 0.8], ["created_at", "2015-02-10 21:05:02.787369"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-10 21:05:02.787369"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.7ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.4ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Calculator Load (0.4ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.6ms) UPDATE "spree_adjustments" SET "amount" = 0.8, "updated_at" = '2015-02-10 21:05:02.856586' WHERE "spree_adjustments"."id" = 52 SQL (1.6ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0.8, "adjustment_total" = 0.8, "updated_at" = '2015-02-10 21:05:02.861074' WHERE "spree_line_items"."id" = 21 SQL (0.6ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-10 21:05:02.867074' WHERE "spree_line_items"."id" = 21 SQL (1.4ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:05:02.870761' WHERE "spree_orders"."id" = 6  (22.7ms) commit transaction Spree::Shipment Exists (0.7ms) SELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? LIMIT 1 [["order_id", 6]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]]  (0.4ms) begin transaction Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]]  (0.3ms) commit transaction  (0.2ms) begin transaction  (0.3ms) commit transaction Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]]  (0.2ms) begin transaction CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]]  (0.2ms) commit transaction  (0.2ms) begin transaction  (0.3ms) commit transaction SQL (0.7ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."adjustable_type" = 'Spree::Shipment' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.4ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (1.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."active" = 't' Spree::StockItem Exists (1.0ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" IN (17, 17, 22, 7, 7, 1) LIMIT 1 [["stock_location_id", 1]] Spree::StockItem Load (1.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 17 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 17 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] Spree::StockItem Load (1.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 22 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 22 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] Spree::StockItem Load (1.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 7 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 7 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] Spree::StockItem Load (1.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 1 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 1 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (4.8ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (1.5ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.4ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (1.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.7ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.5ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 2], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.5ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] CACHE (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 3], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] CACHE (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.4ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 4], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 4]] Spree::ZoneMember Load (0.8ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 5], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.5ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 5]] CACHE (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.3ms) begin transaction  (1.6ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H76836217523%') SQL (5.0ms) INSERT INTO "spree_shipments" ("address_id", "created_at", "number", "order_id", "state", "stock_location_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address_id", 14], ["created_at", "2015-02-10 21:05:04.716689"], ["number", "H76836217523"], ["order_id", 6], ["state", "pending"], ["stock_location_id", 1], ["updated_at", "2015-02-10 21:05:04.716689"]] SQL (3.6ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 5.0], ["created_at", "2015-02-10 21:05:04.729458"], ["selected", "t"], ["shipment_id", 8], ["shipping_method_id", 1], ["updated_at", "2015-02-10 21:05:04.729458"]] SQL (0.6ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost", 10.0], ["created_at", "2015-02-10 21:05:04.739939"], ["shipment_id", 8], ["shipping_method_id", 2], ["updated_at", "2015-02-10 21:05:04.739939"]] SQL (1.0ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost", 15.0], ["created_at", "2015-02-10 21:05:04.745996"], ["shipment_id", 8], ["shipping_method_id", 3], ["updated_at", "2015-02-10 21:05:04.745996"]] SQL (4.2ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-10 21:05:04.754259"], ["line_item_id", 18], ["order_id", 6], ["shipment_id", 8], ["state", "on_hand"], ["updated_at", "2015-02-10 21:05:04.754259"], ["variant_id", 17]] SQL (0.7ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-10 21:05:04.764141' WHERE "spree_shipments"."id" = 8 SQL (1.3ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:05:04.768626' WHERE "spree_orders"."id" = 6 SQL (0.5ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-10 21:05:04.775213"], ["line_item_id", 18], ["order_id", 6], ["shipment_id", 8], ["state", "on_hand"], ["updated_at", "2015-02-10 21:05:04.775213"], ["variant_id", 17]] SQL (0.4ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-10 21:05:04.783212' WHERE "spree_shipments"."id" = 8 SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:05:04.787348' WHERE "spree_orders"."id" = 6 SQL (0.6ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-10 21:05:04.793465"], ["line_item_id", 19], ["order_id", 6], ["shipment_id", 8], ["state", "on_hand"], ["updated_at", "2015-02-10 21:05:04.793465"], ["variant_id", 22]] SQL (0.6ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-10 21:05:04.799235' WHERE "spree_shipments"."id" = 8 SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:05:04.803871' WHERE "spree_orders"."id" = 6 SQL (0.5ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-10 21:05:04.810581"], ["line_item_id", 20], ["order_id", 6], ["shipment_id", 8], ["state", "on_hand"], ["updated_at", "2015-02-10 21:05:04.810581"], ["variant_id", 7]] SQL (0.5ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-10 21:05:04.816819' WHERE "spree_shipments"."id" = 8 SQL (0.4ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:05:04.820730' WHERE "spree_orders"."id" = 6 SQL (0.3ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-10 21:05:04.826666"], ["line_item_id", 20], ["order_id", 6], ["shipment_id", 8], ["state", "on_hand"], ["updated_at", "2015-02-10 21:05:04.826666"], ["variant_id", 7]] SQL (0.3ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-10 21:05:04.831102' WHERE "spree_shipments"."id" = 8 SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:05:04.833660' WHERE "spree_orders"."id" = 6 SQL (0.4ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-10 21:05:04.838937"], ["line_item_id", 21], ["order_id", 6], ["shipment_id", 8], ["state", "on_hand"], ["updated_at", "2015-02-10 21:05:04.838937"], ["variant_id", 1]] SQL (0.6ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-10 21:05:04.844274' WHERE "spree_shipments"."id" = 8 SQL (0.4ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:05:04.849009' WHERE "spree_orders"."id" = 6 SQL (0.4ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:05:04.852091' WHERE "spree_orders"."id" = 6  (241.7ms) commit transaction Spree::ShippingRate Load (0.7ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 8]] CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 8]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 8], ["adjustable_type", "Spree::Shipment"]] SQL (19.3ms) UPDATE "spree_shipments" SET "cost" = 5.0, "adjustment_total" = 0, "updated_at" = '2015-02-10 21:05:05.115850' WHERE "spree_shipments"."id" = 8  (0.8ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (18.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 115.94, "item_count" = 6, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 120.94, "updated_at" = '2015-02-10 21:05:05.156468' WHERE "spree_orders"."id" = 6  (0.2ms) begin transaction Spree::Order Exists (0.6ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (1.2ms) UPDATE "spree_orders" SET "shipment_total" = ?, "state" = ?, "total" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["shipment_total", 5.0], ["state", "delivery"], ["total", 120.94], ["updated_at", "2015-02-10 21:05:05.203154"]]  (19.5ms) commit transaction  (0.3ms) begin transaction SQL (3.0ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-10 21:05:05.237318"], ["name", "order"], ["next_state", "delivery"], ["previous_state", "address"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-10 21:05:05.237318"], ["user_id", 1]]  (20.2ms) commit transaction  (0.2ms) begin transaction Spree::Order Exists (0.5ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.3ms) commit transaction  (0.5ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.4ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.4ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.9ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order')) Spree::LineItem Load (1.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (18, 19, 20, 21) Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.4ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.7ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (25.6ms) UPDATE "spree_adjustments" SET "amount" = 2.0, "updated_at" = '2015-02-10 21:05:05.357835' WHERE "spree_adjustments"."id" = 49 SQL (26.8ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.0, "adjustment_total" = 2.0, "updated_at" = '2015-02-10 21:05:05.386808' WHERE "spree_line_items"."id" = 18 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.3ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Calculator Load (0.4ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (23.0ms) UPDATE "spree_adjustments" SET "amount" = 1.0, "updated_at" = '2015-02-10 21:05:05.454059' WHERE "spree_adjustments"."id" = 50 SQL (18.6ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.0, "adjustment_total" = 1.0, "updated_at" = '2015-02-10 21:05:05.479702' WHERE "spree_line_items"."id" = 19 Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.4ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Calculator Load (0.4ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (21.1ms) UPDATE "spree_adjustments" SET "amount" = 2.0, "updated_at" = '2015-02-10 21:05:05.534638' WHERE "spree_adjustments"."id" = 51 SQL (52.0ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.0, "adjustment_total" = 2.0, "updated_at" = '2015-02-10 21:05:05.559397' WHERE "spree_line_items"."id" = 20 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.3ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Calculator Load (0.4ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (20.8ms) UPDATE "spree_adjustments" SET "amount" = 0.8, "updated_at" = '2015-02-10 21:05:05.660754' WHERE "spree_adjustments"."id" = 52 SQL (30.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0.8, "adjustment_total" = 0.8, "updated_at" = '2015-02-10 21:05:05.685405' WHERE "spree_line_items"."id" = 21  (0.8ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.7ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.7ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.9ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.7ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.4ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.7ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.7ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.7ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.9ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (150.7ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 115.94, "item_count" = 6, "adjustment_total" = 5.8, "included_tax_total" = 0.0, "additional_tax_total" = 5.8, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 126.74, "updated_at" = '2015-02-10 21:05:05.773626' WHERE "spree_orders"."id" = 6 Spree::ShippingRate Load (0.7ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 8]] CACHE (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 8]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 8], ["adjustable_type", "Spree::Shipment"]] SQL (79.9ms) UPDATE "spree_shipments" SET "cost" = 5.0, "adjustment_total" = 0, "updated_at" = '2015-02-10 21:05:05.946953' WHERE "spree_shipments"."id" = 8  (0.5ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (26.2ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 115.94, "item_count" = 6, "adjustment_total" = 5.8, "included_tax_total" = 0.0, "additional_tax_total" = 5.8, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 126.74, "updated_at" = '2015-02-10 21:05:06.036379' WHERE "spree_orders"."id" = 6 Spree::TaxRate Load (0.6ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.5ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.6ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.7ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.4ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (1.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::LineItem' AND "spree_adjustments"."adjustable_id" IN (18, 19, 20, 21) AND "spree_adjustments"."source_type" = 'Spree::TaxRate'  (0.2ms) begin transaction SQL (3.4ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 49]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] SQL (1.0ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-10 21:05:06.114912' WHERE "spree_line_items"."id" = 18 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (1.3ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:05:06.123576' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] SQL (0.6ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-10 21:05:06.144454' WHERE "spree_line_items"."id" = 18  (20.3ms) commit transaction  (0.2ms) begin transaction SQL (5.8ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 50]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] SQL (1.0ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-10 21:05:06.184212' WHERE "spree_line_items"."id" = 19 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.9ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:05:06.194208' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.7ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] SQL (0.6ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-10 21:05:06.216689' WHERE "spree_line_items"."id" = 19  (18.4ms) commit transaction  (0.2ms) begin transaction SQL (6.4ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 51]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] SQL (1.1ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-10 21:05:06.255976' WHERE "spree_line_items"."id" = 20 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.9ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:05:06.265638' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] SQL (0.7ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-10 21:05:06.282965' WHERE "spree_line_items"."id" = 20  (125.4ms) commit transaction  (0.3ms) begin transaction SQL (3.2ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 52]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] SQL (1.1ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-10 21:05:06.425916' WHERE "spree_line_items"."id" = 21 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (1.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:05:06.435340' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] SQL (0.6ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-10 21:05:06.461034' WHERE "spree_line_items"."id" = 21  (65.5ms) commit transaction SQL (24.8ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 39.98 WHERE "spree_line_items"."id" = 18 Spree::Calculator Load (0.6ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]]  (0.4ms) begin transaction Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (5.1ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"], ["amount", 2.0], ["created_at", "2015-02-10 21:05:06.590338"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-10 21:05:06.590338"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.4ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.5ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Calculator Load (0.4ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.6ms) UPDATE "spree_adjustments" SET "amount" = 2.0, "updated_at" = '2015-02-10 21:05:06.652525' WHERE "spree_adjustments"."id" = 53 SQL (1.5ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.0, "adjustment_total" = 2.0, "updated_at" = '2015-02-10 21:05:06.657686' WHERE "spree_line_items"."id" = 18 SQL (0.8ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-10 21:05:06.664428' WHERE "spree_line_items"."id" = 18 SQL (1.2ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:05:06.669031' WHERE "spree_orders"."id" = 6  (279.5ms) commit transaction SQL (113.9ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 19.99 WHERE "spree_line_items"."id" = 19  (0.2ms) begin transaction Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (5.5ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"], ["amount", 1.0], ["created_at", "2015-02-10 21:05:07.085531"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-10 21:05:07.085531"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.4ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.4ms) UPDATE "spree_adjustments" SET "amount" = 1.0, "updated_at" = '2015-02-10 21:05:07.135710' WHERE "spree_adjustments"."id" = 54 SQL (1.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.0, "adjustment_total" = 1.0, "updated_at" = '2015-02-10 21:05:07.139218' WHERE "spree_line_items"."id" = 19 SQL (1.1ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-10 21:05:07.143851' WHERE "spree_line_items"."id" = 19 SQL (1.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:05:07.148872' WHERE "spree_orders"."id" = 6  (26.6ms) commit transaction SQL (29.1ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 39.98 WHERE "spree_line_items"."id" = 20  (0.4ms) begin transaction Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (6.6ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"], ["amount", 2.0], ["created_at", "2015-02-10 21:05:07.242951"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-10 21:05:07.242951"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.3ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Calculator Load (0.5ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.7ms) UPDATE "spree_adjustments" SET "amount" = 2.0, "updated_at" = '2015-02-10 21:05:07.304913' WHERE "spree_adjustments"."id" = 55 SQL (1.2ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.0, "adjustment_total" = 2.0, "updated_at" = '2015-02-10 21:05:07.310369' WHERE "spree_line_items"."id" = 20 SQL (0.6ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-10 21:05:07.316899' WHERE "spree_line_items"."id" = 20 SQL (1.3ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:05:07.321294' WHERE "spree_orders"."id" = 6  (25.9ms) commit transaction SQL (27.6ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 15.99 WHERE "spree_line_items"."id" = 21  (0.3ms) begin transaction Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (6.3ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"], ["amount", 0.8], ["created_at", "2015-02-10 21:05:07.404061"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-10 21:05:07.404061"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.3ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (1.0ms) UPDATE "spree_adjustments" SET "amount" = 0.8, "updated_at" = '2015-02-10 21:05:07.462282' WHERE "spree_adjustments"."id" = 56 SQL (1.5ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0.8, "adjustment_total" = 0.8, "updated_at" = '2015-02-10 21:05:07.467552' WHERE "spree_line_items"."id" = 21 SQL (0.7ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-10 21:05:07.473283' WHERE "spree_line_items"."id" = 21 SQL (1.2ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:05:07.477676' WHERE "spree_orders"."id" = 6  (18.5ms) commit transaction Spree::TaxRate Load (1.0ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.9ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.9ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.9ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.4ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.8ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 8]] Spree::Adjustment Load (0.8ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (1.0ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 8], ["adjustable_type", "Spree::Shipment"]]  (1.9ms) SELECT "spree_promotion_actions"."promotion_id" FROM "spree_promotion_actions" WHERE "spree_promotion_actions"."type" IN ('Spree::Promotion::Actions::FreeShipping') AND "spree_promotion_actions"."deleted_at" IS NULL Spree::Promotion Load (1.7ms) SELECT "spree_promotions".* FROM "spree_promotions" WHERE (starts_at IS NULL OR starts_at < '2015-02-10 21:05:07.627895') AND (expires_at IS NULL OR expires_at > '2015-02-10 21:05:07.631390') AND 1=0 AND "spree_promotions"."code" IS NULL AND "spree_promotions"."path" IS NULL Spree::Shipment Load (1.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 8]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 8], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 8], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 8], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 8], ["adjustable_type", "Spree::Shipment"]] SQL (171.0ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-10 21:05:07.696817' WHERE "spree_shipments"."id" = 8  (0.4ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (23.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 115.94, "item_count" = 6, "adjustment_total" = 5.8, "included_tax_total" = 0.0, "additional_tax_total" = 5.8, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 126.74, "updated_at" = '2015-02-10 21:05:07.875818' WHERE "spree_orders"."id" = 6  (0.2ms) begin transaction Spree::Order Exists (0.4ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (1.5ms) UPDATE "spree_orders" SET "additional_tax_total" = ?, "adjustment_total" = ?, "state" = ?, "total" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["additional_tax_total", 5.8], ["adjustment_total", 5.8], ["state", "payment"], ["total", 126.74], ["updated_at", "2015-02-10 21:05:07.934827"]]  (16.7ms) commit transaction  (0.6ms) begin transaction SQL (3.7ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-10 21:05:07.969055"], ["name", "order"], ["next_state", "payment"], ["previous_state", "delivery"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-10 21:05:07.969055"], ["user_id", 1]]  (21.6ms) commit transaction  (0.2ms) begin transaction Spree::Order Exists (0.7ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.3ms) commit transaction  (0.4ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.4ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (1.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order')) Spree::LineItem Load (0.8ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (18, 19, 20, 21) Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.4ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.5ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Calculator Load (0.4ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (18.8ms) UPDATE "spree_adjustments" SET "amount" = 2.0, "updated_at" = '2015-02-10 21:05:08.111322' WHERE "spree_adjustments"."id" = 53 SQL (15.5ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.0, "adjustment_total" = 2.0, "updated_at" = '2015-02-10 21:05:08.134076' WHERE "spree_line_items"."id" = 18 Spree::Adjustment Load (1.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.3ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.5ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Calculator Load (0.4ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (23.7ms) UPDATE "spree_adjustments" SET "amount" = 1.0, "updated_at" = '2015-02-10 21:05:08.198483' WHERE "spree_adjustments"."id" = 54 SQL (18.5ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.0, "adjustment_total" = 1.0, "updated_at" = '2015-02-10 21:05:08.225512' WHERE "spree_line_items"."id" = 19 Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.8ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Calculator Load (0.5ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (18.3ms) UPDATE "spree_adjustments" SET "amount" = 2.0, "updated_at" = '2015-02-10 21:05:08.299652' WHERE "spree_adjustments"."id" = 55 SQL (17.4ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.0, "adjustment_total" = 2.0, "updated_at" = '2015-02-10 21:05:08.321985' WHERE "spree_line_items"."id" = 20 Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.7ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.5ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Calculator Load (0.6ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (21.3ms) UPDATE "spree_adjustments" SET "amount" = 0.8, "updated_at" = '2015-02-10 21:05:08.386580' WHERE "spree_adjustments"."id" = 56 SQL (15.7ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0.8, "adjustment_total" = 0.8, "updated_at" = '2015-02-10 21:05:08.410991' WHERE "spree_line_items"."id" = 21  (0.5ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.4ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.4ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.4ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.4ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.4ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.5ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.5ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.4ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.4ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (15.5ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 115.94, "item_count" = 6, "adjustment_total" = 5.8, "included_tax_total" = 0.0, "additional_tax_total" = 5.8, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 126.74, "updated_at" = '2015-02-10 21:05:08.485260' WHERE "spree_orders"."id" = 6  (0.5ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.4ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::PaymentMethod Load (0.9ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.7ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.6ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Price Load (0.6ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.6ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (1.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.8ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.4ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::StockLocation Load (0.7ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.9ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 8]] Spree::ShippingMethod Load (1.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.5ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.6ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.6ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.7ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.7ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 8]] CACHE (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (2.5ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 8]] Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (2.4ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.5ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.5ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (1.8ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (1.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 8]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 8], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.8ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.6ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.6ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (1.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (1.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (1.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (1.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.9ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.9ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (1.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.8ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.9ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.7ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.9ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.4ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.5ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.5ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.9ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (1.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (18041.3ms) Completed 200 OK in 26582ms (Views: 18580.9ms | ActiveRecord: 2738.2ms) Started GET "/assets/account/edit.html" for 127.0.0.1 at 2015-02-10 16:05:27 -0500 Started GET "/assets/orders/index.html" for 127.0.0.1 at 2015-02-10 16:05:27 -0500 Started GET "/assets/addresses/index.html" for 127.0.0.1 at 2015-02-10 16:05:27 -0500 Started GET "/assets/credit_cards/index.html" for 127.0.0.1 at 2015-02-10 16:05:28 -0500 Started GET "/assets/checkout/confirm.html" for 127.0.0.1 at 2015-02-10 16:05:28 -0500 Started GET "/api/cart.json" for 127.0.0.1 at 2015-02-10 16:05:28 -0500 Processing by Sprangular::CartsController#show as JSON Spree::User Load (0.9ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.8ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.4ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.4ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::PaymentMethod Load (2.9ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 13]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 14]] Spree::State Load (0.4ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.7ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.4ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.5ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.4ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.6ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 8]] Spree::ShippingMethod Load (0.5ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.4ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 8]] Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.5ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.6ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 8]] CACHE (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.7ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 8]] Spree::Zone Load (0.5ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.4ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.4ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.4ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.6ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 8]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 8], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (2.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.5ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (2.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (1.8ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.9ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (1.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.8ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (1.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (2.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (1.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.8ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.8ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (1.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.6ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (15487.1ms) Completed 200 OK in 15576ms (Views: 15429.2ms | ActiveRecord: 106.2ms) Started GET "/assets/addresses/address.html" for 127.0.0.1 at 2015-02-10 16:05:44 -0500 Started GET "/assets/credit_cards/credit_card.html" for 127.0.0.1 at 2015-02-10 16:05:44 -0500 Started GET "/assets/checkout/nav.html" for 127.0.0.1 at 2015-02-10 16:05:44 -0500 Started GET "/api/countries" for 127.0.0.1 at 2015-02-10 16:06:09 -0500 Processing by Sprangular::CountriesController#index as JSON Spree::User Load (0.9ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (1.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Country Load (46.0ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."name" ASC Spree::State Load (86.8ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" IN (3, 6, 62, 11, 1, 8, 5, 9, 4, 10, 7, 14, 13, 12, 16, 32, 23, 19, 18, 36, 20, 37, 25, 27, 33, 29, 30, 17, 35, 34, 31, 106, 28, 22, 21, 24, 117, 47, 38, 52, 124, 41, 214, 46, 48, 54, 39, 49, 119, 42, 40, 45, 50, 98, 51, 53, 55, 56, 44, 59, 58, 60, 61, 63, 65, 209, 88, 67, 64, 69, 72, 74, 71, 70, 75, 80, 175, 215, 76, 85, 79, 57, 82, 83, 89, 84, 78, 87, 92, 91, 81, 86, 93, 94, 99, 96, 235, 97, 95, 100, 109, 105, 101, 108, 107, 102, 104, 103, 110, 112, 114, 111, 113, 125, 115, 118, 121, 122, 123, 116, 126, 135, 127, 132, 131, 136, 129, 133, 134, 148, 144, 142, 156, 158, 155, 145, 153, 143, 150, 151, 154, 245, 157, 73, 139, 138, 147, 140, 152, 137, 159, 146, 160, 169, 168, 166, 161, 171, 165, 162, 164, 170, 163, 149, 167, 172, 178, 184, 182, 173, 176, 185, 174, 177, 181, 179, 183, 186, 188, 190, 191, 187, 26, 198, 120, 128, 141, 180, 236, 243, 203, 208, 192, 204, 189, 194, 202, 197, 210, 201, 199, 193, 205, 246, 90, 207, 68, 130, 195, 206, 200, 212, 196, 43, 211, 227, 218, 228, 217, 220, 216, 219, 223, 225, 222, 224, 221, 213, 226, 230, 229, 2, 77, 232, 231, 233, 234, 241, 237, 240, 238, 239, 242, 66, 244, 247, 248, 15) ORDER BY name ASC Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/countries/index.rabl (22916.5ms) Completed 200 OK in 23009ms (Views: 22828.3ms | ActiveRecord: 137.8ms) Started GET "/api/cart.json" for 127.0.0.1 at 2015-02-10 16:06:32 -0500 Processing by Sprangular::CartsController#show as JSON Spree::User Load (1.1ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.8ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.4ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::PaymentMethod Load (0.9ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 13]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 14]] Spree::State Load (1.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (1.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (1.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.5ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.4ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.4ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.3ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.5ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 8]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 8]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.4ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 8]] CACHE (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.5ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 8]] Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.3ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.5ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.3ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.4ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 8]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 8], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.5ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.4ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (1.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.7ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (1.8ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (2.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.6ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.8ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.8ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (1.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.6ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.8ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (1.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.6ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.8ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.7ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.4ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.4ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.6ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.6ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.5ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (17141.6ms) Completed 200 OK in 17247ms (Views: 17102.2ms | ActiveRecord: 106.2ms) Started GET "/assets/checkout/index.html" for 127.0.0.1 at 2015-02-10 16:06:49 -0500 Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-10 16:06:49 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-10 16:06:50 -0500 Started GET "/" for 127.0.0.1 at 2015-02-10 16:06:50 -0500 Processing by Sprangular::HomeController#index as HTML Spree::User Load (1.4ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.4ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (2.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.7ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.3ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.7ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.7ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.5ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.8ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 13]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 14]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.8ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.5ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (1.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (1.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.6ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.5ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.4ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.4ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (2.4ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 8]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 8]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.5ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.5ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.6ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 8]] CACHE (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.6ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 8]] Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.4ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.5ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.5ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.4ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.5ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 8]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 8], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.7ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.4ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.4ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.8ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.6ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.6ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.7ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (14125.5ms) CACHE (0.1ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 8]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (9419.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (25473.5ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (444.4ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.8ms) Completed 200 OK in 29450ms (Views: 29309.3ms | ActiveRecord: 101.1ms) Started GET "/assets/addresses/selection.html" for 127.0.0.1 at 2015-02-10 16:07:19 -0500 Started GET "/assets/shipping/rates.html" for 127.0.0.1 at 2015-02-10 16:07:19 -0500 Started GET "/assets/credit_cards/selection.html" for 127.0.0.1 at 2015-02-10 16:07:19 -0500 Started GET "/" for 127.0.0.1 at 2015-02-10 16:07:19 -0500 Processing by Sprangular::HomeController#index as HTML Spree::User Load (0.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 13]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 14]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 8]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 8]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.5ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 8]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.7ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 8]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.3ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.3ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 8]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 8], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (9098.7ms) CACHE (0.1ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 8]] CACHE (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (9367.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (19490.0ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (404.4ms) Spree::Tracker Load (0.5ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.0ms) Completed 200 OK in 24827ms (Views: 24743.0ms | ActiveRecord: 65.8ms) Started GET "/" for 127.0.0.1 at 2015-02-10 16:07:44 -0500 Processing by Sprangular::HomeController#index as HTML Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.8ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.3ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.8ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.4ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.5ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 13]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 14]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 8]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 8]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.4ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 8]] CACHE (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.4ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 8]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.3ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.3ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 8]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 8], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (1.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.4ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.4ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (9642.5ms) CACHE (0.1ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 8]] CACHE (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (9641.9ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (20246.3ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (336.2ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.7ms) Completed 200 OK in 24279ms (Views: 24181.9ms | ActiveRecord: 73.1ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-10 16:08:10 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:10 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:10 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-10 16:08:10 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:10 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:10 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:11 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:11 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:11 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:11 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:11 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:11 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:11 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:11 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:11 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:12 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:12 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:12 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:12 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:12 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:12 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:12 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:12 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:12 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:12 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:12 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:13 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:13 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:13 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:13 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:13 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:13 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:13 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:13 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:13 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:13 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:13 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:13 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:13 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:13 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:14 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:14 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:14 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:14 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:14 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:14 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:14 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:14 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:14 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:15 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:15 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:15 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:15 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:15 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:15 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:15 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:15 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:15 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:15 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:15 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:15 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:16 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:16 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:16 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:16 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:16 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:16 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:16 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:16 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:16 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:17 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:17 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:17 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:17 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:17 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:17 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:17 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:17 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:17 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:17 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:18 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:18 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:18 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:18 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:18 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:18 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:18 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-10 16:08:18 -0500 Started GET "/api/countries" for 127.0.0.1 at 2015-02-10 16:08:26 -0500 Processing by Sprangular::CountriesController#index as JSON Spree::User Load (1.0ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Country Load (5.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."name" ASC Spree::State Load (100.5ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" IN (3, 6, 62, 11, 1, 8, 5, 9, 4, 10, 7, 14, 13, 12, 16, 32, 23, 19, 18, 36, 20, 37, 25, 27, 33, 29, 30, 17, 35, 34, 31, 106, 28, 22, 21, 24, 117, 47, 38, 52, 124, 41, 214, 46, 48, 54, 39, 49, 119, 42, 40, 45, 50, 98, 51, 53, 55, 56, 44, 59, 58, 60, 61, 63, 65, 209, 88, 67, 64, 69, 72, 74, 71, 70, 75, 80, 175, 215, 76, 85, 79, 57, 82, 83, 89, 84, 78, 87, 92, 91, 81, 86, 93, 94, 99, 96, 235, 97, 95, 100, 109, 105, 101, 108, 107, 102, 104, 103, 110, 112, 114, 111, 113, 125, 115, 118, 121, 122, 123, 116, 126, 135, 127, 132, 131, 136, 129, 133, 134, 148, 144, 142, 156, 158, 155, 145, 153, 143, 150, 151, 154, 245, 157, 73, 139, 138, 147, 140, 152, 137, 159, 146, 160, 169, 168, 166, 161, 171, 165, 162, 164, 170, 163, 149, 167, 172, 178, 184, 182, 173, 176, 185, 174, 177, 181, 179, 183, 186, 188, 190, 191, 187, 26, 198, 120, 128, 141, 180, 236, 243, 203, 208, 192, 204, 189, 194, 202, 197, 210, 201, 199, 193, 205, 246, 90, 207, 68, 130, 195, 206, 200, 212, 196, 43, 211, 227, 218, 228, 217, 220, 216, 219, 223, 225, 222, 224, 221, 213, 226, 230, 229, 2, 77, 232, 231, 233, 234, 241, 237, 240, 238, 239, 242, 66, 244, 247, 248, 15) ORDER BY name ASC Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/countries/index.rabl (25550.9ms) Completed 200 OK in 25611ms (Views: 25469.2ms | ActiveRecord: 108.9ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-10 16:08:51 -0500 Started GET "/api/cart.json" for 127.0.0.1 at 2015-02-10 16:08:51 -0500 Processing by Sprangular::CartsController#show as JSON Spree::User Load (1.4ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (1.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.4ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.4ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.4ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::PaymentMethod Load (0.7ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 13]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 14]] Spree::State Load (0.6ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.5ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.8ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (1.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.6ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (1.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (1.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (1.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.6ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.5ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.6ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.6ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.5ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 8]] Spree::ShippingMethod Load (0.5ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.4ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 8]] Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.9ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.5ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 8]] CACHE (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.7ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 8]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.5ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.5ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.5ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.5ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.5ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 8]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 8], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.4ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.4ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (1.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.9ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.8ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (1.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.9ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.6ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (14468.5ms) Completed 200 OK in 14561ms (Views: 14420.5ms | ActiveRecord: 99.3ms) Started GET "/assets/checkout/index.html" for 127.0.0.1 at 2015-02-10 16:09:06 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-10 16:09:06 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (0.8ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.4ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.5ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (198.7ms) Completed 200 OK in 284ms (Views: 228.9ms | ActiveRecord: 12.8ms) Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-10 16:09:07 -0500 Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-10 16:09:07 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.5ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.4ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (15.5ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (246.9ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (4.6ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1465.9ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-10 16:09:08 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-10 16:09:09 -0500 Started GET "/assets/checkout/nav.html" for 127.0.0.1 at 2015-02-10 16:09:09 -0500 Started GET "/assets/shipping/rates.html" for 127.0.0.1 at 2015-02-10 16:09:09 -0500 Started GET "/assets/addresses/selection.html" for 127.0.0.1 at 2015-02-10 16:09:09 -0500 Started GET "/assets/credit_cards/selection.html" for 127.0.0.1 at 2015-02-10 16:09:09 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-10 16:09:09 -0500 Started GET "/assets/addresses/form.html" for 127.0.0.1 at 2015-02-10 16:09:09 -0500 Started GET "/assets/credit_cards/form.html" for 127.0.0.1 at 2015-02-10 16:09:09 -0500 Started PUT "/api/checkouts/R079133342/quick_update" for 127.0.0.1 at 2015-02-10 16:09:27 -0500 Processing by Spree::Api::CheckoutsController#quick_update as JSON Parameters: {"order"=>{"use_billing"=>"true", "coupon_code"=>"", "ship_address_attributes"=>{"firstname"=>"Joshua", "lastname"=>"Nussbaum", "address1"=>"3447 Saint Dominique", "address2"=>"", "city"=>"Montreal", "phone"=>"5145910281", "zipcode"=>"H2X 2X5", "state_id"=>"434", "country_id"=>"38"}, "bill_address_attributes"=>{"firstname"=>"Joshua", "lastname"=>"Nussbaum", "address1"=>"3447 Saint Dominique", "address2"=>"", "city"=>"Montreal", "phone"=>"5145910281", "zipcode"=>"H2X 2X5", "state_id"=>"434", "country_id"=>"38"}, "payments_attributes"=>[{"payment_method_id"=>"1"}], "shipments_attributes"=>[{"id"=>"8", "selected_shipping_rate_id"=>"31"}]}, "id"=>"R079133342"} Spree::User Load (1.4ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1  (1.1ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]]  (0.4ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Order Load (2.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1 Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]]  (1.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]]  (0.8ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]]  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Spree::Shipment Load (1.5ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::ShippingRate Load (0.7ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 8], ["id", 31]]  (0.4ms) begin transaction Spree::Order Exists (1.5ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (1.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (2.0ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "cart"], ["updated_at", "2015-02-10 21:09:28.085382"]]  (26.6ms) commit transaction  (0.3ms) begin transaction SQL (4.9ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 8]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 8], ["id", 31]] SQL (0.4ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 31 [["selected", "t"], ["updated_at", "2015-02-10 21:09:28.160014"]] SQL (0.9ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:09:28.169751' WHERE "spree_orders"."id" = 6 Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 13]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 14]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (2.4ms) INSERT INTO "spree_addresses" ("address1", "address2", "city", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "3447 Saint Dominique"], ["address2", ""], ["city", "Montreal"], ["country_id", 38], ["created_at", "2015-02-10 21:09:28.225219"], ["firstname", "Joshua"], ["lastname", "Nussbaum"], ["phone", "5145910281"], ["state_id", 434], ["updated_at", "2015-02-10 21:09:28.225219"], ["zipcode", "H2X 2X5"]] SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "city", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "3447 Saint Dominique"], ["address2", ""], ["city", "Montreal"], ["country_id", 38], ["created_at", "2015-02-10 21:09:28.231851"], ["firstname", "Joshua"], ["lastname", "Nussbaum"], ["phone", "5145910281"], ["state_id", 434], ["updated_at", "2015-02-10 21:09:28.231851"], ["zipcode", "H2X 2X5"]] SQL (1.1ms) UPDATE "spree_orders" SET "bill_address_id" = ?, "ship_address_id" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["bill_address_id", 15], ["ship_address_id", 16], ["updated_at", "2015-02-10 21:09:28.235020"]]  (17.8ms) commit transaction Spree::ShippingRate Load (0.5ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 8]] CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 8]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 8], ["adjustable_type", "Spree::Shipment"]] SQL (16.4ms) UPDATE "spree_shipments" SET "cost" = 5.0, "adjustment_total" = 0, "updated_at" = '2015-02-10 21:09:28.271130' WHERE "spree_shipments"."id" = 8  (0.5ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (25.9ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 115.94, "item_count" = 6, "adjustment_total" = 5.8, "included_tax_total" = 0.0, "additional_tax_total" = 5.8, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 126.74, "updated_at" = '2015-02-10 21:09:28.295252' WHERE "spree_orders"."id" = 6 Spree::User Load (0.5ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) begin transaction Spree::Order Exists (0.5ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (1.0ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "address"], ["updated_at", "2015-02-10 21:09:28.354086"]]  (20.3ms) commit transaction  (0.2ms) begin transaction SQL (3.0ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-10 21:09:28.386344"], ["name", "order"], ["next_state", "address"], ["previous_state", "cart"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-10 21:09:28.386344"], ["user_id", 1]]  (23.4ms) commit transaction  (0.3ms) begin transaction Spree::Order Exists (0.6ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.2ms) commit transaction SQL (0.9ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 38) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 434)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::TaxRate Load (0.5ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.6ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.4ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (1.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::LineItem' AND "spree_adjustments"."adjustable_id" IN (18, 19, 20, 21) AND "spree_adjustments"."source_type" = 'Spree::TaxRate'  (0.2ms) begin transaction SQL (2.3ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 53]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] SQL (0.7ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-10 21:09:28.489832' WHERE "spree_line_items"."id" = 18 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (1.1ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:09:28.496175' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] SQL (0.5ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-10 21:09:28.509965' WHERE "spree_line_items"."id" = 18  (37.6ms) commit transaction  (0.3ms) begin transaction SQL (6.1ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 54]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] SQL (0.8ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-10 21:09:28.568170' WHERE "spree_line_items"."id" = 19 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (1.1ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:09:28.577694' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] SQL (0.4ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-10 21:09:28.595386' WHERE "spree_line_items"."id" = 19  (19.2ms) commit transaction  (0.2ms) begin transaction SQL (4.0ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 55]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] SQL (0.9ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-10 21:09:28.628051' WHERE "spree_line_items"."id" = 20 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:09:28.634252' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] SQL (0.5ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-10 21:09:28.650361' WHERE "spree_line_items"."id" = 20  (18.6ms) commit transaction  (0.2ms) begin transaction SQL (3.6ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 56]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] SQL (0.6ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-10 21:09:28.683893' WHERE "spree_line_items"."id" = 21 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.8ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:09:28.690102' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] SQL (0.5ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-10 21:09:28.704007' WHERE "spree_line_items"."id" = 21  (29.9ms) commit transaction SQL (21.2ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 39.98 WHERE "spree_line_items"."id" = 18 Spree::Calculator Load (0.4ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]]  (0.1ms) begin transaction Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (3.1ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"], ["amount", 2.0], ["created_at", "2015-02-10 21:09:28.773274"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-10 21:09:28.773274"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.3ms) UPDATE "spree_adjustments" SET "amount" = 2.0, "updated_at" = '2015-02-10 21:09:28.800928' WHERE "spree_adjustments"."id" = 57 SQL (0.7ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.0, "adjustment_total" = 2.0, "updated_at" = '2015-02-10 21:09:28.803117' WHERE "spree_line_items"."id" = 18 SQL (0.5ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-10 21:09:28.805683' WHERE "spree_line_items"."id" = 18 SQL (0.7ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:09:28.808302' WHERE "spree_orders"."id" = 6  (26.5ms) commit transaction SQL (85.9ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 19.99 WHERE "spree_line_items"."id" = 19  (0.3ms) begin transaction Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (3.9ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"], ["amount", 1.0], ["created_at", "2015-02-10 21:09:28.936558"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-10 21:09:28.936558"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.3ms) UPDATE "spree_adjustments" SET "amount" = 1.0, "updated_at" = '2015-02-10 21:09:28.966884' WHERE "spree_adjustments"."id" = 58 SQL (0.7ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.0, "adjustment_total" = 1.0, "updated_at" = '2015-02-10 21:09:28.969257' WHERE "spree_line_items"."id" = 19 SQL (0.4ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-10 21:09:28.972245' WHERE "spree_line_items"."id" = 19 SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:09:28.974999' WHERE "spree_orders"."id" = 6  (16.2ms) commit transaction SQL (171.7ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 39.98 WHERE "spree_line_items"."id" = 20  (0.4ms) begin transaction Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (3.5ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"], ["amount", 2.0], ["created_at", "2015-02-10 21:09:29.213611"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-10 21:09:29.213611"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.4ms) UPDATE "spree_adjustments" SET "amount" = 2.0, "updated_at" = '2015-02-10 21:09:29.255771' WHERE "spree_adjustments"."id" = 59 SQL (0.9ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.0, "adjustment_total" = 2.0, "updated_at" = '2015-02-10 21:09:29.258942' WHERE "spree_line_items"."id" = 20 SQL (0.5ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-10 21:09:29.262301' WHERE "spree_line_items"."id" = 20 SQL (0.8ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:09:29.265345' WHERE "spree_orders"."id" = 6  (26.4ms) commit transaction SQL (52.6ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 15.99 WHERE "spree_line_items"."id" = 21  (0.2ms) begin transaction Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (3.0ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"], ["amount", 0.8], ["created_at", "2015-02-10 21:09:29.366319"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-10 21:09:29.366319"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Calculator Load (0.4ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.3ms) UPDATE "spree_adjustments" SET "amount" = 0.8, "updated_at" = '2015-02-10 21:09:29.397851' WHERE "spree_adjustments"."id" = 60 SQL (0.7ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0.8, "adjustment_total" = 0.8, "updated_at" = '2015-02-10 21:09:29.399998' WHERE "spree_line_items"."id" = 21 SQL (0.3ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-10 21:09:29.402205' WHERE "spree_line_items"."id" = 21 SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:09:29.403817' WHERE "spree_orders"."id" = 6  (21.0ms) commit transaction Spree::TaxRate Load (0.6ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.4ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.3ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 8]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 8], ["adjustable_type", "Spree::Shipment"]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]]  (0.3ms) begin transaction Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]]  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]]  (0.2ms) begin transaction CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]]  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.2ms) commit transaction SQL (0.2ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."adjustable_type" = 'Spree::Shipment' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 8], ["adjustable_type", "Spree::Shipment"]] SQL (1.9ms) DELETE FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 8]] SQL (2.2ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? [["shipment_id", 8]] SQL (2.5ms) DELETE FROM "spree_shipments" WHERE "spree_shipments"."id" = ? [["id", 8]] SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:09:29.510531' WHERE "spree_orders"."id" = 6  (20.5ms) commit transaction Spree::StockLocation Load (0.6ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."active" = 't' Spree::StockItem Exists (0.3ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" IN (17, 17, 22, 7, 7, 1) LIMIT 1 [["stock_location_id", 1]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 17 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 17 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 22 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 22 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 7 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 7 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 1 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 1 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.2ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 2], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] CACHE (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 3], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] CACHE (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 4], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 4]] Spree::ZoneMember Load (1.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::Calculator Load (0.4ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 5], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 5]] CACHE (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.3ms) begin transaction  (0.5ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H51367356414%') SQL (3.2ms) INSERT INTO "spree_shipments" ("address_id", "created_at", "number", "order_id", "state", "stock_location_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address_id", 16], ["created_at", "2015-02-10 21:09:29.714748"], ["number", "H51367356414"], ["order_id", 6], ["state", "pending"], ["stock_location_id", 1], ["updated_at", "2015-02-10 21:09:29.714748"]] SQL (2.0ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 5.0], ["created_at", "2015-02-10 21:09:29.722000"], ["selected", "t"], ["shipment_id", 9], ["shipping_method_id", 1], ["updated_at", "2015-02-10 21:09:29.722000"]] SQL (0.3ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost", 10.0], ["created_at", "2015-02-10 21:09:29.729177"], ["shipment_id", 9], ["shipping_method_id", 2], ["updated_at", "2015-02-10 21:09:29.729177"]] SQL (1.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost", 15.0], ["created_at", "2015-02-10 21:09:29.733099"], ["shipment_id", 9], ["shipping_method_id", 3], ["updated_at", "2015-02-10 21:09:29.733099"]] SQL (2.9ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-10 21:09:29.738543"], ["line_item_id", 18], ["order_id", 6], ["shipment_id", 9], ["state", "on_hand"], ["updated_at", "2015-02-10 21:09:29.738543"], ["variant_id", 17]] SQL (0.5ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-10 21:09:29.745844' WHERE "spree_shipments"."id" = 9 SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:09:29.748599' WHERE "spree_orders"."id" = 6 SQL (0.2ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-10 21:09:29.752173"], ["line_item_id", 18], ["order_id", 6], ["shipment_id", 9], ["state", "on_hand"], ["updated_at", "2015-02-10 21:09:29.752173"], ["variant_id", 17]] SQL (0.4ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-10 21:09:29.755007' WHERE "spree_shipments"."id" = 9 SQL (0.3ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:09:29.757823' WHERE "spree_orders"."id" = 6 SQL (0.2ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-10 21:09:29.761351"], ["line_item_id", 19], ["order_id", 6], ["shipment_id", 9], ["state", "on_hand"], ["updated_at", "2015-02-10 21:09:29.761351"], ["variant_id", 22]] SQL (0.3ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-10 21:09:29.765276' WHERE "spree_shipments"."id" = 9 SQL (0.3ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:09:29.767588' WHERE "spree_orders"."id" = 6 SQL (0.3ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-10 21:09:29.770961"], ["line_item_id", 20], ["order_id", 6], ["shipment_id", 9], ["state", "on_hand"], ["updated_at", "2015-02-10 21:09:29.770961"], ["variant_id", 7]] SQL (0.4ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-10 21:09:29.774234' WHERE "spree_shipments"."id" = 9 SQL (0.4ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:09:29.777288' WHERE "spree_orders"."id" = 6 SQL (0.2ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-10 21:09:29.781854"], ["line_item_id", 20], ["order_id", 6], ["shipment_id", 9], ["state", "on_hand"], ["updated_at", "2015-02-10 21:09:29.781854"], ["variant_id", 7]] SQL (0.3ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-10 21:09:29.784970' WHERE "spree_shipments"."id" = 9 SQL (0.4ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:09:29.787229' WHERE "spree_orders"."id" = 6 SQL (0.2ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-10 21:09:29.790880"], ["line_item_id", 21], ["order_id", 6], ["shipment_id", 9], ["state", "on_hand"], ["updated_at", "2015-02-10 21:09:29.790880"], ["variant_id", 1]] SQL (0.4ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-10 21:09:29.794307' WHERE "spree_shipments"."id" = 9 SQL (0.3ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:09:29.796620' WHERE "spree_orders"."id" = 6 SQL (0.3ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:09:29.798949' WHERE "spree_orders"."id" = 6  (31.0ms) commit transaction Spree::ShippingRate Load (0.4ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]] SQL (36.3ms) UPDATE "spree_shipments" SET "cost" = 5.0, "adjustment_total" = 0, "updated_at" = '2015-02-10 21:09:29.843373' WHERE "spree_shipments"."id" = 9  (0.3ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (118.2ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 115.94, "item_count" = 6, "adjustment_total" = 5.8, "included_tax_total" = 0.0, "additional_tax_total" = 5.8, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 126.74, "updated_at" = '2015-02-10 21:09:29.884246' WHERE "spree_orders"."id" = 6  (0.1ms) begin transaction Spree::Order Exists (0.4ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (1.2ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "delivery"], ["updated_at", "2015-02-10 21:09:30.019949"]]  (115.4ms) commit transaction  (0.1ms) begin transaction SQL (1.7ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-10 21:09:30.145259"], ["name", "order"], ["next_state", "delivery"], ["previous_state", "address"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-10 21:09:30.145259"], ["user_id", 1]]  (15.2ms) commit transaction  (0.1ms) begin transaction Spree::Order Exists (0.4ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.2ms) commit transaction  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.3ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.8ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order')) Spree::LineItem Load (0.5ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (18, 19, 20, 21) Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (27.1ms) UPDATE "spree_adjustments" SET "amount" = 2.0, "updated_at" = '2015-02-10 21:09:30.226688' WHERE "spree_adjustments"."id" = 57 SQL (41.2ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.0, "adjustment_total" = 2.0, "updated_at" = '2015-02-10 21:09:30.256339' WHERE "spree_line_items"."id" = 18 Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (37.6ms) UPDATE "spree_adjustments" SET "amount" = 1.0, "updated_at" = '2015-02-10 21:09:30.321466' WHERE "spree_adjustments"."id" = 58 SQL (82.2ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.0, "adjustment_total" = 1.0, "updated_at" = '2015-02-10 21:09:30.361008' WHERE "spree_line_items"."id" = 19 Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (104.6ms) UPDATE "spree_adjustments" SET "amount" = 2.0, "updated_at" = '2015-02-10 21:09:30.470299' WHERE "spree_adjustments"."id" = 59 SQL (66.5ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.0, "adjustment_total" = 2.0, "updated_at" = '2015-02-10 21:09:30.577194' WHERE "spree_line_items"."id" = 20 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.3ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Calculator Load (0.4ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (66.1ms) UPDATE "spree_adjustments" SET "amount" = 0.8, "updated_at" = '2015-02-10 21:09:30.680540' WHERE "spree_adjustments"."id" = 60 SQL (247.5ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0.8, "adjustment_total" = 0.8, "updated_at" = '2015-02-10 21:09:30.748672' WHERE "spree_line_items"."id" = 21  (0.3ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.2ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (184.9ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 115.94, "item_count" = 6, "adjustment_total" = 5.8, "included_tax_total" = 0.0, "additional_tax_total" = 5.8, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 126.74, "updated_at" = '2015-02-10 21:09:31.023047' WHERE "spree_orders"."id" = 6  (0.2ms) begin transaction SQL (1.4ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 9]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 9], ["id", 34]] SQL (0.3ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 34 [["selected", "t"], ["updated_at", "2015-02-10 21:09:31.219496"]] SQL (1.0ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:09:31.227938' WHERE "spree_orders"."id" = 6 SQL (0.4ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:09:31.234520' WHERE "spree_orders"."id" = 6  (13.9ms) commit transaction Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]] SQL (144.1ms) UPDATE "spree_shipments" SET "cost" = 5.0, "adjustment_total" = 0, "updated_at" = '2015-02-10 21:09:31.259568' WHERE "spree_shipments"."id" = 9  (0.5ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (30.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 115.94, "item_count" = 6, "adjustment_total" = 5.8, "included_tax_total" = 0.0, "additional_tax_total" = 5.8, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 126.74, "updated_at" = '2015-02-10 21:09:31.409165' WHERE "spree_orders"."id" = 6 Spree::TaxRate Load (0.7ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.4ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.7ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::LineItem' AND "spree_adjustments"."adjustable_id" IN (18, 19, 20, 21) AND "spree_adjustments"."source_type" = 'Spree::TaxRate'  (0.2ms) begin transaction SQL (2.1ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 57]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] SQL (0.8ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-10 21:09:31.469817' WHERE "spree_line_items"."id" = 18 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (1.0ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:09:31.476767' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] SQL (0.6ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-10 21:09:31.490622' WHERE "spree_line_items"."id" = 18  (19.9ms) commit transaction  (0.2ms) begin transaction SQL (3.3ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 58]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] SQL (0.7ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-10 21:09:31.522842' WHERE "spree_line_items"."id" = 19 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.7ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:09:31.528944' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] SQL (0.5ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-10 21:09:31.542195' WHERE "spree_line_items"."id" = 19  (19.6ms) commit transaction  (0.2ms) begin transaction SQL (3.4ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 59]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] SQL (0.7ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-10 21:09:31.574904' WHERE "spree_line_items"."id" = 20 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.9ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:09:31.580790' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] SQL (0.6ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-10 21:09:31.596053' WHERE "spree_line_items"."id" = 20  (19.2ms) commit transaction  (0.2ms) begin transaction SQL (3.3ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 60]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] SQL (0.8ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-10 21:09:31.629377' WHERE "spree_line_items"."id" = 21 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.8ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:09:31.634506' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] SQL (0.4ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-10 21:09:31.650395' WHERE "spree_line_items"."id" = 21  (20.2ms) commit transaction SQL (18.9ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 39.98 WHERE "spree_line_items"."id" = 18 Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]]  (0.1ms) begin transaction Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (2.7ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"], ["amount", 2.0], ["created_at", "2015-02-10 21:09:31.711420"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-10 21:09:31.711420"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.3ms) UPDATE "spree_adjustments" SET "amount" = 2.0, "updated_at" = '2015-02-10 21:09:31.740442' WHERE "spree_adjustments"."id" = 61 SQL (0.8ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.0, "adjustment_total" = 2.0, "updated_at" = '2015-02-10 21:09:31.742723' WHERE "spree_line_items"."id" = 18 SQL (0.5ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-10 21:09:31.745915' WHERE "spree_line_items"."id" = 18 SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:09:31.748562' WHERE "spree_orders"."id" = 6  (21.7ms) commit transaction SQL (18.6ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 19.99 WHERE "spree_line_items"."id" = 19  (0.2ms) begin transaction Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (3.7ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"], ["amount", 1.0], ["created_at", "2015-02-10 21:09:31.801755"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-10 21:09:31.801755"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.4ms) UPDATE "spree_adjustments" SET "amount" = 1.0, "updated_at" = '2015-02-10 21:09:31.828421' WHERE "spree_adjustments"."id" = 62 SQL (0.6ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.0, "adjustment_total" = 1.0, "updated_at" = '2015-02-10 21:09:31.830516' WHERE "spree_line_items"."id" = 19 SQL (0.3ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-10 21:09:31.833022' WHERE "spree_line_items"."id" = 19 SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:09:31.834735' WHERE "spree_orders"."id" = 6  (17.3ms) commit transaction SQL (20.3ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 39.98 WHERE "spree_line_items"."id" = 20  (0.3ms) begin transaction Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (4.0ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"], ["amount", 2.0], ["created_at", "2015-02-10 21:09:31.887246"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-10 21:09:31.887246"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.6ms) UPDATE "spree_adjustments" SET "amount" = 2.0, "updated_at" = '2015-02-10 21:09:31.922509' WHERE "spree_adjustments"."id" = 63 SQL (0.7ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.0, "adjustment_total" = 2.0, "updated_at" = '2015-02-10 21:09:31.926192' WHERE "spree_line_items"."id" = 20 SQL (0.4ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-10 21:09:31.929026' WHERE "spree_line_items"."id" = 20 SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:09:31.931442' WHERE "spree_orders"."id" = 6  (463.3ms) commit transaction SQL (19.6ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 15.99 WHERE "spree_line_items"."id" = 21  (0.4ms) begin transaction Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (3.3ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"], ["amount", 0.8], ["created_at", "2015-02-10 21:09:32.430417"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-10 21:09:32.430417"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.3ms) UPDATE "spree_adjustments" SET "amount" = 0.8, "updated_at" = '2015-02-10 21:09:32.455684' WHERE "spree_adjustments"."id" = 64 SQL (0.7ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0.8, "adjustment_total" = 0.8, "updated_at" = '2015-02-10 21:09:32.458241' WHERE "spree_line_items"."id" = 21 SQL (0.4ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-10 21:09:32.461899' WHERE "spree_line_items"."id" = 21 SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-10 21:09:32.464622' WHERE "spree_orders"."id" = 6  (18.7ms) commit transaction Spree::TaxRate Load (0.5ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.6ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.7ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.5ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]]  (0.5ms) SELECT "spree_promotion_actions"."promotion_id" FROM "spree_promotion_actions" WHERE "spree_promotion_actions"."type" IN ('Spree::Promotion::Actions::FreeShipping') AND "spree_promotion_actions"."deleted_at" IS NULL Spree::Promotion Load (0.7ms) SELECT "spree_promotions".* FROM "spree_promotions" WHERE (starts_at IS NULL OR starts_at < '2015-02-10 21:09:32.514521') AND (expires_at IS NULL OR expires_at > '2015-02-10 21:09:32.515096') AND 1=0 AND "spree_promotions"."code" IS NULL AND "spree_promotions"."path" IS NULL Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]] SQL (16.5ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-10 21:09:32.536118' WHERE "spree_shipments"."id" = 9  (0.4ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (19.8ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 115.94, "item_count" = 6, "adjustment_total" = 5.8, "included_tax_total" = 0.0, "additional_tax_total" = 5.8, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 126.74, "updated_at" = '2015-02-10 21:09:32.558734' WHERE "spree_orders"."id" = 6  (0.2ms) begin transaction Spree::Order Exists (0.5ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.8ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "payment"], ["updated_at", "2015-02-10 21:09:32.600933"]]  (15.9ms) commit transaction  (0.2ms) begin transaction SQL (2.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-10 21:09:32.627917"], ["name", "order"], ["next_state", "payment"], ["previous_state", "delivery"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-10 21:09:32.627917"], ["user_id", 1]]  (23.1ms) commit transaction  (0.3ms) begin transaction Spree::Order Exists (0.6ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.3ms) commit transaction  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.2ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.8ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order')) Spree::LineItem Load (0.6ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (18, 19, 20, 21) Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.4ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (1.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Calculator Load (0.4ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (16.5ms) UPDATE "spree_adjustments" SET "amount" = 2.0, "updated_at" = '2015-02-10 21:09:32.733583' WHERE "spree_adjustments"."id" = 61 SQL (14.8ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.0, "adjustment_total" = 2.0, "updated_at" = '2015-02-10 21:09:32.753060' WHERE "spree_line_items"."id" = 18 Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (21.8ms) UPDATE "spree_adjustments" SET "amount" = 1.0, "updated_at" = '2015-02-10 21:09:32.796185' WHERE "spree_adjustments"."id" = 62 SQL (15.0ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.0, "adjustment_total" = 1.0, "updated_at" = '2015-02-10 21:09:32.820614' WHERE "spree_line_items"."id" = 19 Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (15.0ms) UPDATE "spree_adjustments" SET "amount" = 2.0, "updated_at" = '2015-02-10 21:09:32.863633' WHERE "spree_adjustments"."id" = 63 SQL (19.8ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.0, "adjustment_total" = 2.0, "updated_at" = '2015-02-10 21:09:32.881213' WHERE "spree_line_items"."id" = 20 Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.5ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Calculator Load (0.4ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (116.6ms) UPDATE "spree_adjustments" SET "amount" = 0.8, "updated_at" = '2015-02-10 21:09:32.949119' WHERE "spree_adjustments"."id" = 64 SQL (117.6ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0.8, "adjustment_total" = 0.8, "updated_at" = '2015-02-10 21:09:33.068244' WHERE "spree_line_items"."id" = 21  (0.3ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.4ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.2ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (15.4ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 115.94, "item_count" = 6, "adjustment_total" = 5.8, "included_tax_total" = 0.0, "additional_tax_total" = 5.8, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 126.74, "updated_at" = '2015-02-10 21:09:33.217440' WHERE "spree_orders"."id" = 6  (0.5ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::PaymentMethod Load (0.7ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.8ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.8ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.6ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.5ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.5ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::StockLocation Load (0.3ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.6ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::ShippingMethod Load (0.6ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.5ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.5ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.4ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.5ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.8ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.4ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.4ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.7ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.4ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.4ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 9]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.6ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.8ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (1.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (4.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (1.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.7ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.9ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.7ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.9ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.9ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (1.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (1.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.4ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.4ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.9ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (16733.7ms) Completed 200 OK in 22384ms (Views: 16961.9ms | ActiveRecord: 3490.9ms) Started GET "/api/cart.json" for 127.0.0.1 at 2015-02-10 16:09:51 -0500 Processing by Sprangular::CartsController#show as JSON Spree::User Load (1.2ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (1.1ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.4ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.4ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.4ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::PaymentMethod Load (1.7ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 15]] Spree::Address Load (0.7ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 16]] Spree::State Load (0.5ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.7ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.8ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.8ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.8ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.5ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (1.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.3ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.4ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::ShippingMethod Load (0.4ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.4ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.6ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.5ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.3ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.3ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.3ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.5ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 9]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.8ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.4ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.4ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (1.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (1.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.7ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.8ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.6ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.4ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.4ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (15083.7ms) Completed 200 OK in 15182ms (Views: 15037.0ms | ActiveRecord: 99.5ms) Started GET "/assets/checkout/confirm.html" for 127.0.0.1 at 2015-02-10 16:10:06 -0500 Started GET "/assets/addresses/address.html" for 127.0.0.1 at 2015-02-10 16:10:07 -0500 Started GET "/assets/credit_cards/credit_card.html" for 127.0.0.1 at 2015-02-10 16:10:07 -0500 Started GET "/api/cart.json" for 127.0.0.1 at 2015-02-10 16:25:16 -0500 Processing by Sprangular::CartsController#show as JSON Spree::User Load (1.0ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (2.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 15]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 16]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.3ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.4ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.3ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (8671.2ms) Completed 200 OK in 8762ms (Views: 8653.2ms | ActiveRecord: 61.8ms) Started GET "/" for 127.0.0.1 at 2015-02-10 16:38:58 -0500 Processing by Sprangular::HomeController#index as HTML Spree::User Load (0.8ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.6ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.8ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.5ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.6ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.7ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 15]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 16]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.5ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.4ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.3ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.4ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.6ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::Zone Load (1.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.3ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.3ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 9]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.4ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (2.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (9429.9ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (7737.5ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (17980.9ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (526.0ms) Completed 500 Internal Server Error in 19380ms ActionView::Template::Error (SyntaxError: [stdin]:22:73: unexpected : (in /home/josh/Projects/Dynamo/sprangular/app/assets/javascripts/sprangular/models/address.coffee)): 26: 27: ng-include(src="'assets/layout/footer.html'") 28: 29: = javascript_include_tag "application" 30: 31: = yield 32: app/views/layouts/sprangular/application.slim:29:in `_be697cfdb4fb10164bd54669d193ff15' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.3ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (3.0ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (276.9ms) Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-10 16:39:18 -0500 Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-10 16:39:18 -0500 Started GET "/" for 127.0.0.1 at 2015-02-10 16:40:14 -0500 Processing by Sprangular::HomeController#index as HTML Spree::User Load (0.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.4ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.4ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.5ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.4ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 15]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 16]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.5ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.3ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (8530.9ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (8556.0ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (18073.9ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (373.2ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.2ms) Completed 200 OK in 23755ms (Views: 23669.4ms | ActiveRecord: 63.1ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-10 16:40:38 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-10 16:40:38 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:38 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:39 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:39 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:39 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:39 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:39 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:39 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:39 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:39 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:40 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:40 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:40 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:40 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:40 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:40 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:40 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:40 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:40 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:40 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:40 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:41 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:41 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:41 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:41 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:41 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:41 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:41 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:41 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:41 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:41 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:41 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:41 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:42 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:42 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:42 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:42 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:42 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:42 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:42 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:42 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:42 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:42 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:42 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:42 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:42 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:42 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:43 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:43 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:43 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:43 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:43 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:43 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:43 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:43 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:43 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:43 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:43 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:43 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:44 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:44 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:44 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:44 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:44 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:44 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:44 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:44 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:44 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:44 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:44 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:44 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:44 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:45 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:45 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:45 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:45 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:45 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:45 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:45 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:45 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:45 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:46 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:46 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:46 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:46 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:46 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-10 16:40:46 -0500 Started GET "/" for 127.0.0.1 at 2015-02-10 16:41:29 -0500 Processing by Sprangular::HomeController#index as HTML Spree::User Load (0.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.1ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.4ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 15]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 16]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.5ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (1.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (1.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.9ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.4ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (9107.9ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (7327.9ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (17411.2ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (551.4ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.7ms) Completed 200 OK in 21343ms (Views: 21252.9ms | ActiveRecord: 67.0ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-10 16:41:52 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-10 16:41:52 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:52 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:52 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:52 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:52 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:52 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:53 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:53 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:53 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:53 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:53 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:53 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:53 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:53 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:53 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:53 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:53 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:53 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:53 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:54 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:54 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:54 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:54 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:54 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:54 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:54 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:54 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:54 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:54 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:54 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:54 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:54 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:54 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:55 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:55 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:55 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:55 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:55 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:55 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:55 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:55 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:55 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:55 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:55 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:55 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:55 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:55 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:56 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:56 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:56 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:56 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:56 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:56 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:56 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:56 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:56 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:56 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:56 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:56 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:56 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:56 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:56 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:57 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:57 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:57 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:57 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:57 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:57 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:57 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:57 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:57 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:57 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:57 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:57 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:58 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:58 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:58 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:58 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:58 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:58 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:58 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:58 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:58 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:58 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:58 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:58 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-10 16:41:58 -0500 Started GET "/api/countries" for 127.0.0.1 at 2015-02-10 16:41:59 -0500 Processing by Sprangular::CountriesController#index as JSON Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Country Load (8.3ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."name" ASC Spree::State Load (83.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" IN (3, 6, 62, 11, 1, 8, 5, 9, 4, 10, 7, 14, 13, 12, 16, 32, 23, 19, 18, 36, 20, 37, 25, 27, 33, 29, 30, 17, 35, 34, 31, 106, 28, 22, 21, 24, 117, 47, 38, 52, 124, 41, 214, 46, 48, 54, 39, 49, 119, 42, 40, 45, 50, 98, 51, 53, 55, 56, 44, 59, 58, 60, 61, 63, 65, 209, 88, 67, 64, 69, 72, 74, 71, 70, 75, 80, 175, 215, 76, 85, 79, 57, 82, 83, 89, 84, 78, 87, 92, 91, 81, 86, 93, 94, 99, 96, 235, 97, 95, 100, 109, 105, 101, 108, 107, 102, 104, 103, 110, 112, 114, 111, 113, 125, 115, 118, 121, 122, 123, 116, 126, 135, 127, 132, 131, 136, 129, 133, 134, 148, 144, 142, 156, 158, 155, 145, 153, 143, 150, 151, 154, 245, 157, 73, 139, 138, 147, 140, 152, 137, 159, 146, 160, 169, 168, 166, 161, 171, 165, 162, 164, 170, 163, 149, 167, 172, 178, 184, 182, 173, 176, 185, 174, 177, 181, 179, 183, 186, 188, 190, 191, 187, 26, 198, 120, 128, 141, 180, 236, 243, 203, 208, 192, 204, 189, 194, 202, 197, 210, 201, 199, 193, 205, 246, 90, 207, 68, 130, 195, 206, 200, 212, 196, 43, 211, 227, 218, 228, 217, 220, 216, 219, 223, 225, 222, 224, 221, 213, 226, 230, 229, 2, 77, 232, 231, 233, 234, 241, 237, 240, 238, 239, 242, 66, 244, 247, 248, 15) ORDER BY name ASC Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/countries/index.rabl (16092.1ms) Completed 200 OK in 16149ms (Views: 16027.1ms | ActiveRecord: 95.0ms) Started GET "/assets/checkout/index.html" for 127.0.0.1 at 2015-02-10 16:42:15 -0500 Started GET "/api/cart.json" for 127.0.0.1 at 2015-02-10 16:42:15 -0500 Processing by Sprangular::CartsController#show as JSON Spree::User Load (0.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 15]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 16]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.3ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (1.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (8833.3ms) Completed 200 OK in 8879ms (Views: 8794.7ms | ActiveRecord: 62.6ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-10 16:42:24 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-10 16:42:24 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (2.2ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.9ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (2.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.4ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (1.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (2.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (225.4ms) Completed 200 OK in 327ms (Views: 244.3ms | ActiveRecord: 18.7ms) Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-10 16:42:25 -0500 Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-10 16:42:25 -0500 Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-10 16:42:25 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.9ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.2ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (12.9ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (230.7ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.0ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1147.4ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-10 16:42:26 -0500 Started GET "/assets/checkout/nav.html" for 127.0.0.1 at 2015-02-10 16:42:27 -0500 Started GET "/assets/addresses/selection.html" for 127.0.0.1 at 2015-02-10 16:42:27 -0500 Started GET "/assets/shipping/rates.html" for 127.0.0.1 at 2015-02-10 16:42:27 -0500 Started GET "/assets/credit_cards/selection.html" for 127.0.0.1 at 2015-02-10 16:42:27 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-10 16:42:27 -0500 Started GET "/assets/addresses/form.html" for 127.0.0.1 at 2015-02-10 16:42:27 -0500 Started GET "/assets/credit_cards/form.html" for 127.0.0.1 at 2015-02-10 16:42:27 -0500 Started GET "/" for 127.0.0.1 at 2015-02-11 23:41:37 -0500 Spree::Preference Load (0.7ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/auth_configuration/confirmable' LIMIT 1 Processing by Sprangular::HomeController#index as HTML Spree::Preference Load (0.6ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/redirect_https_to_http' LIMIT 1 Spree::User Load (1.0ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Preference Load (0.7ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency' LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.9ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (3.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (2.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.6ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/logo' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/default_country_id' LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (1.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/display_currency' LIMIT 1 Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_symbol_position' LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/hide_cents' LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_decimal_mark' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_thousands_separator' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_sign_before_symbol' LIMIT 1 Spree::Address Load (2.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.5ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.5ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.7ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/always_include_confirm_step' LIMIT 1 Spree::Payment Load (0.5ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 15]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 16]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.9ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (2.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (1.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::Preference Load (0.7ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/track_inventory_levels' LIMIT 1  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (1.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (9.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.5ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.9ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.7ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.5ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.5ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.8ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::ShippingMethod Load (0.6ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.8ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.8ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.7ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::Zone Load (0.6ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.7ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.3ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.6ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 9]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.7ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (1.2ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.6ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.6ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.6ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (1.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (1.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (1.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.7ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.8ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (11669.3ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (7549.3ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (20416.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (754.5ms) Spree::Tracker Load (0.5ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (14.0ms) Completed 200 OK in 51572ms (Views: 50938.2ms | ActiveRecord: 148.4ms) Started GET "/" for 127.0.0.1 at 2015-02-11 23:42:33 -0500 Processing by Sprangular::HomeController#index as HTML Spree::User Load (1.0ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.1ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.7ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.7ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.4ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.5ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.6ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 15]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 16]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (1.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (1.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.8ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.3ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.5ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.4ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.4ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.3ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.4ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 9]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.4ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (1.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.4ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (11945.7ms) CACHE (0.1ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (9070.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (22479.1ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (398.8ms) Spree::Tracker Load (0.5ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.0ms) Completed 200 OK in 27110ms (Views: 26989.9ms | ActiveRecord: 81.6ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-11 23:43:01 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-11 23:43:01 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:01 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:01 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:02 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:02 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:02 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:02 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:02 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:02 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:02 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:02 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:02 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:02 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:03 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:03 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:03 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:03 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:03 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:03 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:03 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:03 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:03 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:03 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:03 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:03 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:04 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:04 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:04 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:04 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:04 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:04 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:04 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:04 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:04 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:04 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:04 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:04 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:04 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:04 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:05 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:05 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:05 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:05 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:05 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:05 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:05 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:05 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:05 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:05 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:05 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:05 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:05 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:05 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:06 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:06 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:06 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:06 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:06 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:06 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:06 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:06 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:06 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:06 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:06 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:06 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:07 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:07 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:07 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:07 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:07 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:07 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:07 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:07 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:07 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:07 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:07 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:07 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:07 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:08 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:08 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:08 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:08 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:08 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:08 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:09 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:09 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-11 23:43:09 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-11 23:43:11 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-11 23:43:11 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (0.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.8ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (1.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (1.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (293.1ms) Completed 200 OK in 369ms (Views: 308.1ms | ActiveRecord: 16.5ms) Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-11 23:43:12 -0500 Started GET "/api/products?page=1&per_page=8" for 127.0.0.1 at 2015-02-11 23:43:12 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"8"} Spree::User Load (1.1ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (1.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Preference Load (1.6ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/show_products_without_price' LIMIT 1  (1.5ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 04:43:12.741678') AND ("spree_products".available_on <= '2015-02-12 04:43:12.745626') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0) subquery_for_count  (1.3ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 04:43:12.741678') AND ("spree_products".available_on <= '2015-02-12 04:43:12.745626') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (1.5ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 04:43:12.741678') AND ("spree_products".available_on <= '2015-02-12 04:43:12.745626') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0 Spree::ProductOptionType Load (0.8ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.6ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Image Load (1.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.5ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Price Load (1.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::ProductProperty Load (1.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY spree_product_properties.position Spree::Property Load (1.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (1.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_variants".position ASC Spree::Image Load (1.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (1.0ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.9ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (1.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (1.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (1.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (1.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (6065.3ms) Completed 200 OK in 6170ms (Views: 6037.7ms | ActiveRecord: 69.2ms) Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-11 23:43:18 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (9.3ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (6.7ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (39.3ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (256.8ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (5.3ms) Rendered /home/josh/.rvm/gems/ruby-2.0.0-p481/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (2753.3ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-11 23:43:22 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-11 23:43:22 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-11 23:43:22 -0500 Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-11 23:43:54 -0500 Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-11 23:47:49 -0500 Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-11 23:48:24 -0500 Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-11 23:49:29 -0500 ActiveRecord::SchemaMigration Load (1.7ms) SELECT "schema_migrations".* FROM "schema_migrations" Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-11 23:50:14 -0500 Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-11 23:50:47 -0500 Started GET "/" for 127.0.0.1 at 2015-02-12 00:07:36 -0500 ActiveRecord::SchemaMigration Load (2.7ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Sprangular::HomeController#index as HTML Spree::User Load (0.5ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.4ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (1.8ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.5ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.4ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.4ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.5ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 15]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 16]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.7ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.7ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.6ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.6ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.5ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.5ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::ShippingMethod Load (0.4ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.4ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.5ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.5ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::Zone Load (0.5ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.4ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.5ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 9]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.7ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (1.2ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.5ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.4ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.5ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (9921.0ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (7028.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (19616.0ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (569.0ms) Spree::Tracker Load (0.3ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (15.8ms) Completed 200 OK in 33819ms (Views: 33285.0ms | ActiveRecord: 109.7ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-12 00:08:10 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-12 00:08:11 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:11 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:11 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:11 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:11 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:11 -0500 Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-12 00:08:11 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:11 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:11 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:11 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:12 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:12 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:12 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:12 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:12 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:12 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:12 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:12 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:12 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:13 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:13 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:13 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:13 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:13 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:13 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:13 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:13 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:13 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:14 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:14 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:14 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:14 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:14 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:14 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:14 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:14 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:14 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:14 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:15 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:15 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:15 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:15 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:15 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:15 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:15 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:16 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:16 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:16 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:16 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:16 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:16 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:16 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:16 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:16 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:16 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:17 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:17 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:17 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:17 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:17 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:17 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:17 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:17 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:17 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:17 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:17 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:17 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:17 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:17 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:18 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:18 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:18 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:18 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:18 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:18 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:18 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:18 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:18 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:18 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:18 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:18 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:19 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:19 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:19 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:19 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:19 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:19 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-12 00:08:19 -0500 Started GET "/api/products?page=1&per_page=8" for 127.0.0.1 at 2015-02-12 00:08:21 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"8"} Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (1.0ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 05:08:21.243900') AND ("spree_products".available_on <= '2015-02-12 05:08:21.245201') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0) subquery_for_count  (0.7ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 05:08:21.243900') AND ("spree_products".available_on <= '2015-02-12 05:08:21.245201') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (1.1ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 05:08:21.243900') AND ("spree_products".available_on <= '2015-02-12 05:08:21.245201') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 8 OFFSET 0 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.9ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (1.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Image Load (1.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.5ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Price Load (0.9ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::ProductProperty Load (1.8ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY spree_product_properties.position Spree::Property Load (1.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (1.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8) ORDER BY "spree_variants".position ASC Spree::Image Load (1.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.8ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.9ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (1.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (6017.0ms) Completed 200 OK in 6077ms (Views: 5995.0ms | ActiveRecord: 53.9ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-12 00:08:27 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-12 00:08:27 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (0.8ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (255.9ms) Completed 200 OK in 331ms (Views: 277.0ms | ActiveRecord: 12.9ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-12 00:08:27 -0500 Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-12 00:08:27 -0500 Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-12 00:08:28 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.7ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.3ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (12.3ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (214.3ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (31.3ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1648.0ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-12 00:08:30 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-12 00:08:30 -0500 Started GET "/" for 127.0.0.1 at 2015-02-12 01:06:16 -0500 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/auth_configuration/confirmable' LIMIT 1 Processing by Sprangular::HomeController#index as HTML Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/redirect_https_to_http' LIMIT 1 Spree::User Load (0.5ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency' LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/logo' LIMIT 1 Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/default_country_id' LIMIT 1 Spree::PaymentMethod Load (0.7ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/products_per_page' LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/display_currency' LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_symbol_position' LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/hide_cents' LIMIT 1 Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_decimal_mark' LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_thousands_separator' LIMIT 1 Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_sign_before_symbol' LIMIT 1 Spree::Address Load (0.7ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (1.5ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.7ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.4ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/always_include_confirm_step' LIMIT 1 Spree::Payment Load (0.7ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 15]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 16]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.7ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/track_inventory_levels' LIMIT 1  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (1.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.5ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.5ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.4ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.8ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::ShippingMethod Load (0.4ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.4ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.5ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.6ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.5ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.5ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.8ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.4ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.4ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (1.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (1.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.9ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.5ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (1.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (10275.7ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (7790.3ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (19180.9ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (376.5ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (10.8ms) Completed 200 OK in 23430ms (Views: 23151.7ms | ActiveRecord: 120.1ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-12 01:06:43 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-12 01:06:43 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:43 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:43 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:43 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:44 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:44 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:44 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:44 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:44 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:44 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:44 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:44 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:44 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:45 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:45 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:45 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:45 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:45 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:45 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:45 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:45 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:45 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:45 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:45 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:45 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:46 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:46 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:46 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:46 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:46 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:46 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:46 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:46 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:46 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:46 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:46 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:46 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:46 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:46 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:47 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:47 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:47 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:47 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:47 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:47 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:47 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:47 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:47 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:47 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:47 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:47 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:48 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:48 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:48 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:48 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:48 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:48 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:48 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:48 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:48 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:48 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:48 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:48 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:48 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:49 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:49 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:49 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:49 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:49 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:49 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:49 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:49 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:49 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:49 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:49 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:49 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:49 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:50 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:50 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:50 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:50 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:50 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:50 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:50 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:50 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:50 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-12 01:06:50 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-12 01:06:53 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-12 01:06:53 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (0.5ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (319.7ms) Completed 200 OK in 397ms (Views: 339.6ms | ActiveRecord: 13.9ms) Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-12 01:06:54 -0500 Started GET "/api/products?page=1&per_page=12" for 127.0.0.1 at 2015-02-12 01:06:54 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12"} Spree::User Load (0.8ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/show_products_without_price' LIMIT 1  (1.2ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:06:54.704379') AND ("spree_products".available_on <= '2015-02-12 06:06:54.706821') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0) subquery_for_count  (1.0ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:06:54.704379') AND ("spree_products".available_on <= '2015-02-12 06:06:54.706821') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (1.9ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:06:54.704379') AND ("spree_products".available_on <= '2015-02-12 06:06:54.706821') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.6ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::OptionType Load (0.7ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (1.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (1.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Image Load (1.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.5ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Price Load (0.7ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::ProductProperty Load (1.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY spree_product_properties.position Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_variants".position ASC Spree::Image Load (1.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.5ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.6ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 9]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 9]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 9]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 11]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 11]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 11]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 12]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 12]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 12]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (6513.8ms) Completed 200 OK in 6590ms (Views: 6490.0ms | ActiveRecord: 58.7ms) Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-12 01:07:01 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.2ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.8ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (31.1ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (428.7ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (5.0ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1919.5ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-12 01:07:03 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-12 01:07:03 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-12 01:07:03 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-12 01:07:09 -0500 Processing by Sprangular::AccountsController#show as JSON Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (1.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (1.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.6ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.3ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.5ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.7ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::PaymentMethod Load (0.8ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 15]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 16]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.5ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.3ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.4ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.4ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (1.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (1.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (1.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (9296.3ms) Completed 200 OK in 9393ms (Views: 9259.4ms | ActiveRecord: 71.0ms) Started GET "/assets/account/show.html" for 127.0.0.1 at 2015-02-12 01:07:18 -0500 Started GET "/assets/account/edit.html" for 127.0.0.1 at 2015-02-12 01:10:44 -0500 Started GET "/assets/credit_cards/index.html" for 127.0.0.1 at 2015-02-12 01:10:44 -0500 Started GET "/assets/addresses/index.html" for 127.0.0.1 at 2015-02-12 01:10:44 -0500 Started GET "/assets/orders/index.html" for 127.0.0.1 at 2015-02-12 01:10:44 -0500 Started GET "/assets/credit_cards/credit_card.html" for 127.0.0.1 at 2015-02-12 01:10:45 -0500 Started GET "/assets/addresses/address.html" for 127.0.0.1 at 2015-02-12 01:10:45 -0500 Started GET "/api/products?page=1&per_page=12" for 127.0.0.1 at 2015-02-12 01:10:51 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12"} Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.8ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:10:51.257089') AND ("spree_products".available_on <= '2015-02-12 06:10:51.258086') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0) subquery_for_count  (1.0ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:10:51.257089') AND ("spree_products".available_on <= '2015-02-12 06:10:51.258086') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (1.1ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:10:51.257089') AND ("spree_products".available_on <= '2015-02-12 06:10:51.258086') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.8ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.6ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (1.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Image Load (1.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.5ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Price Load (0.7ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::ProductProperty Load (1.7ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY spree_product_properties.position Spree::Property Load (0.7ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_variants".position ASC Spree::Image Load (1.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.5ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 9]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 9]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 9]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 11]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 11]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 11]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 12]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 12]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 12]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (6717.6ms) Completed 200 OK in 6773ms (Views: 6692.0ms | ActiveRecord: 52.9ms) Started GET "/api/account" for 127.0.0.1 at 2015-02-12 01:10:58 -0500 Processing by Sprangular::AccountsController#show as JSON Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.1ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 15]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 16]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (1.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (8349.6ms) Completed 200 OK in 8398ms (Views: 8317.6ms | ActiveRecord: 56.8ms) Started GET "/" for 127.0.0.1 at 2015-02-12 01:11:06 -0500 Processing by Sprangular::HomeController#index as HTML Spree::User Load (0.9ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.1ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 15]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 16]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (8222.1ms) CACHE (0.1ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (7950.8ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (17335.9ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (450.1ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.7ms) Completed 200 OK in 21250ms (Views: 21160.2ms | ActiveRecord: 59.6ms) Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-12 01:11:28 -0500 Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-12 01:11:28 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:28 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:28 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:28 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:29 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:29 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:29 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:29 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:29 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:29 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:29 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:29 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:29 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:29 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:30 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:30 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:30 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:30 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:30 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:30 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:30 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:30 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:30 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:30 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:30 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:30 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:31 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:31 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:31 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:31 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:31 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:31 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:31 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:31 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:31 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:31 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:31 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:31 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:31 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:32 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:32 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:32 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:32 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:32 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:32 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:32 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:32 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:32 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:32 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:32 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:33 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:33 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:33 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:33 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:33 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:33 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:33 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:33 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:33 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:33 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:33 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:33 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:33 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:34 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:34 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:34 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:34 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:34 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:34 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:34 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:34 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:34 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:34 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:34 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:34 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:34 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:34 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:35 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:35 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:35 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:35 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:35 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:35 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:35 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:35 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:35 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-12 01:11:35 -0500 Started GET "/assets/account/show.html" for 127.0.0.1 at 2015-02-12 01:11:41 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-12 01:11:41 -0500 Processing by Sprangular::AccountsController#show as JSON Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.5ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 15]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 16]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (1.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::ShippingMethod Load (0.4ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.8ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (1.9ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (1.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.4ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (1.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (1.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (9129.7ms) Completed 200 OK in 9202ms (Views: 9092.9ms | ActiveRecord: 65.1ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-12 01:11:50 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-12 01:11:50 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (3.0ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (144.3ms) Completed 200 OK in 192ms (Views: 158.6ms | ActiveRecord: 10.8ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-12 01:11:50 -0500 Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-12 01:11:50 -0500 Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-12 01:11:51 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.7ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.1ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (11.8ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (212.9ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.4ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1217.4ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-12 01:11:52 -0500 Started GET "/assets/account/edit.html" for 127.0.0.1 at 2015-02-12 01:11:52 -0500 Started GET "/assets/credit_cards/index.html" for 127.0.0.1 at 2015-02-12 01:11:52 -0500 Started GET "/assets/addresses/index.html" for 127.0.0.1 at 2015-02-12 01:11:52 -0500 Started GET "/assets/orders/index.html" for 127.0.0.1 at 2015-02-12 01:11:52 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-12 01:11:52 -0500 Started GET "/assets/credit_cards/credit_card.html" for 127.0.0.1 at 2015-02-12 01:11:52 -0500 Started GET "/assets/addresses/address.html" for 127.0.0.1 at 2015-02-12 01:11:52 -0500 Started GET "/api/taxons/brand/ruby" for 127.0.0.1 at 2015-02-12 01:12:42 -0500 Processing by Sprangular::TaxonsController#show as JSON Parameters: {"permalink"=>"brand/ruby"} Spree::User Load (1.0ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."permalink" = 'brand/ruby' ORDER BY "spree_taxons"."id" ASC LIMIT 1 Spree::Taxon Load (1.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxons/show.v1.rabl (13.5ms) Completed 200 OK in 93ms (Views: 51.8ms | ActiveRecord: 7.0ms) Started GET "/api/products?page=1&per_page=12&q%5Btaxons_permalink_eq%5D=brand%2Fruby" for 127.0.0.1 at 2015-02-12 01:12:42 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12", "q"=>{"taxons_permalink_eq"=>"brand/ruby"}} Spree::User Load (0.8ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (1.1ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL LEFT OUTER JOIN "spree_products_taxons" ON "spree_products_taxons"."product_id" = "spree_products"."id" LEFT OUTER JOIN "spree_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:12:43.022744') AND ("spree_products".available_on <= '2015-02-12 06:12:43.023983') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND "spree_taxons"."permalink" = 'brand/ruby' LIMIT 12 OFFSET 0) subquery_for_count  (0.8ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL LEFT OUTER JOIN "spree_products_taxons" ON "spree_products_taxons"."product_id" = "spree_products"."id" LEFT OUTER JOIN "spree_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:12:43.022744') AND ("spree_products".available_on <= '2015-02-12 06:12:43.023983') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND "spree_taxons"."permalink" = 'brand/ruby' Spree::Product Load (1.1ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL LEFT OUTER JOIN "spree_products_taxons" ON "spree_products_taxons"."product_id" = "spree_products"."id" LEFT OUTER JOIN "spree_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:12:43.022744') AND ("spree_products".available_on <= '2015-02-12 06:12:43.023983') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND "spree_taxons"."permalink" = 'brand/ruby' LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.6ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (6) Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (6) Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (7, 8) Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (6) Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (6) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.3ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (6) Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (6) Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (6) ORDER BY spree_product_properties.position Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (6) ORDER BY "spree_variants".position ASC Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (391.7ms) Completed 200 OK in 469ms (Views: 409.2ms | ActiveRecord: 14.9ms) Started GET "/api/account" for 127.0.0.1 at 2015-02-12 01:12:46 -0500 Processing by Sprangular::AccountsController#show as JSON Spree::User Load (1.4ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (1.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.3ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.4ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 15]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 16]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (1.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (1.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.4ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (8526.0ms) Completed 200 OK in 8617ms (Views: 8494.0ms | ActiveRecord: 62.8ms) Started GET "/spree/logout" for 127.0.0.1 at 2015-02-12 01:14:08 -0500 Processing by Spree::UserSessionsController#destroy as JSON Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'DudG_Ag-mwgR-I-k8gvBQg' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]] Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/allow_ssl_in_development_and_test' LIMIT 1  (0.3ms) begin transaction  (0.2ms) commit transaction Completed 200 OK in 65ms (Views: 0.3ms | ActiveRecord: 3.5ms) Started GET "/api/products?page=1&per_page=12" for 127.0.0.1 at 2015-02-12 01:14:09 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12"}  (0.8ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:14:09.219527') AND ("spree_products".available_on <= '2015-02-12 06:14:09.221425') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0) subquery_for_count  (2.0ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:14:09.219527') AND ("spree_products".available_on <= '2015-02-12 06:14:09.221425') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (2.9ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:14:09.219527') AND ("spree_products".available_on <= '2015-02-12 06:14:09.221425') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (1.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::OptionType Load (1.7ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (2.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Image Load (1.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.6ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Price Load (0.7ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::ProductProperty Load (1.5ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY spree_product_properties.position Spree::Property Load (0.8ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (2.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_variants".position ASC Spree::Image Load (1.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.8ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.7ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.9ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 9]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 9]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 9]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 11]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 11]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 11]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 12]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 12]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 12]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (6498.8ms) Completed 200 OK in 6553ms (Views: 6478.5ms | ActiveRecord: 58.1ms) Started GET "/assets/account/signin.html" for 127.0.0.1 at 2015-02-12 01:14:20 -0500 Started POST "/spree/login.json" for 127.0.0.1 at 2015-02-12 01:14:33 -0500 Processing by Spree::UserSessionsController#create as JSON Parameters: {"spree_user"=>{"email"=>"spree@example.com", "password"=>"[FILTERED]"}} Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."email" = 'spree@example.com' ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."user_id" IS NULL  (0.1ms) begin transaction SQL (1.0ms) UPDATE "spree_users" SET "current_sign_in_at" = ?, "last_sign_in_at" = ?, "sign_in_count" = ?, "updated_at" = ? WHERE "spree_users"."id" = 1 [["current_sign_in_at", "2015-02-12 06:14:33.474126"], ["last_sign_in_at", "2015-02-10 19:24:04.874175"], ["sign_in_count", 8], ["updated_at", "2015-02-12 06:14:33.475774"]]  (19.4ms) commit transaction Spree::Store Load (0.8ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]] Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.6ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 15]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 16]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 9]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (8472.6ms) Completed 200 OK in 8574ms (Views: 8440.8ms | ActiveRecord: 78.1ms) Started GET "/api/account" for 127.0.0.1 at 2015-02-12 01:14:42 -0500 Processing by Sprangular::AccountsController#show as JSON Spree::User Load (1.9ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (1.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.8ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.6ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.4ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.6ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.6ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 15]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 16]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.4ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (1.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (8392.4ms) Completed 200 OK in 8470ms (Views: 8362.4ms | ActiveRecord: 63.7ms) Started GET "/" for 127.0.0.1 at 2015-02-12 01:48:06 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Preference Load (0.8ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/redirect_https_to_http' LIMIT 1 Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency' LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.1ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/logo' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/default_country_id' LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/products_per_page' LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/display_currency' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_symbol_position' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/hide_cents' LIMIT 1 Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_decimal_mark' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_thousands_separator' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_sign_before_symbol' LIMIT 1 Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.8ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.5ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.5ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/always_include_confirm_step' LIMIT 1 Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 15]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 16]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/track_inventory_levels' LIMIT 1  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.8ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (1.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (1.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.7ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (1.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (9723.2ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (7307.3ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (18063.0ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (388.6ms) Spree::Tracker Load (0.3ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.6ms) Completed 200 OK in 21808ms (Views: 21708.2ms | ActiveRecord: 71.6ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-12 01:48:28 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:28 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-12 01:48:28 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:29 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:29 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:29 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:29 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:29 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:29 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:29 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:29 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:29 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:30 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:30 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:30 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:30 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:30 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:30 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:30 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:30 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:30 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:31 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:31 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:31 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:31 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:31 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:31 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:31 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:31 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:31 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:31 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:31 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:31 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:31 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:32 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:32 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:32 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:32 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:32 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:32 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:32 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:32 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:32 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:32 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:32 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:33 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:33 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:33 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:33 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:33 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:33 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:33 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:33 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:33 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:33 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:34 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:34 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:34 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:34 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:34 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:34 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:34 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:34 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:34 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:34 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:34 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:34 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:34 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:35 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:35 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:35 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:35 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:35 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:35 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:35 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:35 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:35 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:35 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:35 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:35 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:36 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:36 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:36 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:36 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:36 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:36 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:36 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-12 01:48:36 -0500 Started GET "/api/account" for 127.0.0.1 at 2015-02-12 01:48:37 -0500 Processing by Sprangular::AccountsController#show as JSON Spree::User Load (0.9ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.4ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.5ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.6ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.6ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 15]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 16]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.3ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 9]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.5ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.7ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (1.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (8863.3ms) Completed 200 OK in 8943ms (Views: 8841.7ms | ActiveRecord: 61.9ms) Started GET "/assets/account/show.html" for 127.0.0.1 at 2015-02-12 01:48:46 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-12 01:48:46 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-12 01:48:46 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (1.1ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (192.2ms) Completed 200 OK in 265ms (Views: 221.9ms | ActiveRecord: 11.3ms) Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-12 01:48:47 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-12 01:48:47 -0500 Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-12 01:48:47 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.7ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.1ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (11.6ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (218.5ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.4ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1291.3ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-12 01:48:48 -0500 Started GET "/api/products?page=1&per_page=12&q%5Bname_or_description_cont%5D=p" for 127.0.0.1 at 2015-02-12 01:48:48 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12", "q"=>{"name_or_description_cont"=>"p"}} Spree::User Load (0.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/show_products_without_price' LIMIT 1  (0.8ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:48:49.021136') AND ("spree_products".available_on <= '2015-02-12 06:48:49.022153') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%p%' OR "spree_products"."description" LIKE '%p%')) LIMIT 12 OFFSET 0) subquery_for_count  (0.7ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:48:49.021136') AND ("spree_products".available_on <= '2015-02-12 06:48:49.022153') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%p%' OR "spree_products"."description" LIKE '%p%')) Spree::Product Load (1.2ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:48:49.021136') AND ("spree_products".available_on <= '2015-02-12 06:48:49.022153') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%p%' OR "spree_products"."description" LIKE '%p%')) LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (1.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Image Load (1.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.3ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Price Load (0.7ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::ProductProperty Load (1.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY spree_product_properties.position Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_variants".position ASC Spree::Image Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.4ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 9]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 9]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 9]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 11]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 11]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 11]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 12]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 12]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 12]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (6633.8ms) Completed 200 OK in 6683ms (Views: 6607.0ms | ActiveRecord: 49.5ms) Started GET "/assets/account/edit.html" for 127.0.0.1 at 2015-02-12 01:48:55 -0500 Started GET "/assets/credit_cards/index.html" for 127.0.0.1 at 2015-02-12 01:48:55 -0500 Started GET "/assets/addresses/index.html" for 127.0.0.1 at 2015-02-12 01:48:55 -0500 Started GET "/api/products?page=1&per_page=12&q%5Bname_or_description_cont%5D=pr" for 127.0.0.1 at 2015-02-12 01:48:55 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12", "q"=>{"name_or_description_cont"=>"pr"}} Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.8ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:48:56.038124') AND ("spree_products".available_on <= '2015-02-12 06:48:56.039114') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%pr%' OR "spree_products"."description" LIKE '%pr%')) LIMIT 12 OFFSET 0) subquery_for_count  (0.7ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:48:56.038124') AND ("spree_products".available_on <= '2015-02-12 06:48:56.039114') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%pr%' OR "spree_products"."description" LIKE '%pr%')) Spree::Product Load (1.0ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:48:56.038124') AND ("spree_products".available_on <= '2015-02-12 06:48:56.039114') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%pr%' OR "spree_products"."description" LIKE '%pr%')) LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (8, 9, 10, 11, 12, 15, 16) Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.6ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (8, 9, 10, 11, 12, 15, 16) Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (7, 10, 6, 3, 4) Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (8, 9, 10, 11, 12, 15, 16) Spree::Image Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (8, 9, 10, 11, 12, 15, 16) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.3ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (8, 9, 10, 11, 12, 15, 16) Spree::Price Load (0.8ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (8, 9, 10, 11, 12, 15, 16) Spree::ProductProperty Load (1.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (8, 9, 10, 11, 12, 15, 16) ORDER BY spree_product_properties.position Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (8, 9, 10, 11, 12, 15, 16) ORDER BY "spree_variants".position ASC Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 9]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 9]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 9]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (1.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 11]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 11]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 11]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 12]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 12]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 12]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 15]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 15]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 15]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 15 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 15 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 15 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 4]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 16]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 16]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 16]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 16 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 16 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 16 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (2775.5ms) Completed 200 OK in 2824ms (Views: 2771.6ms | ActiveRecord: 26.7ms) Started GET "/assets/orders/index.html" for 127.0.0.1 at 2015-02-12 01:48:58 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-12 01:48:58 -0500 Started GET "/api/products?page=1&per_page=12&q%5Bname_or_description_cont%5D=pro" for 127.0.0.1 at 2015-02-12 01:48:59 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12", "q"=>{"name_or_description_cont"=>"pro"}} Spree::User Load (0.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.1ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.7ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:48:59.109189') AND ("spree_products".available_on <= '2015-02-12 06:48:59.110068') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%pro%' OR "spree_products"."description" LIKE '%pro%')) LIMIT 12 OFFSET 0) subquery_for_count  (0.5ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:48:59.109189') AND ("spree_products".available_on <= '2015-02-12 06:48:59.110068') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%pro%' OR "spree_products"."description" LIKE '%pro%')) Spree::Product Load (0.6ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:48:59.109189') AND ("spree_products".available_on <= '2015-02-12 06:48:59.110068') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%pro%' OR "spree_products"."description" LIKE '%pro%')) LIMIT 12 OFFSET 0 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (18.1ms) Completed 200 OK in 69ms (Views: 35.5ms | ActiveRecord: 5.2ms) Started GET "/api/products?page=1&per_page=12&q%5Bname_or_description_cont%5D=s" for 127.0.0.1 at 2015-02-12 01:48:59 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12", "q"=>{"name_or_description_cont"=>"s"}} Spree::User Load (0.5ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.1ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.8ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:48:59.245114') AND ("spree_products".available_on <= '2015-02-12 06:48:59.246029') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%s%' OR "spree_products"."description" LIKE '%s%')) LIMIT 12 OFFSET 0) subquery_for_count  (0.7ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:48:59.245114') AND ("spree_products".available_on <= '2015-02-12 06:48:59.246029') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%s%' OR "spree_products"."description" LIKE '%s%')) Spree::Product Load (1.0ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:48:59.245114') AND ("spree_products".available_on <= '2015-02-12 06:48:59.246029') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%s%' OR "spree_products"."description" LIKE '%s%')) LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.5ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Image Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.3ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Price Load (0.7ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::ProductProperty Load (1.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY spree_product_properties.position Spree::Property Load (0.6ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_variants".position ASC Spree::Image Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.4ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 9]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 9]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 9]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 11]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 11]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 11]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 12]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 12]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 12]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (6313.0ms) Completed 200 OK in 6361ms (Views: 6287.6ms | ActiveRecord: 47.1ms) Started GET "/api/products?page=1&per_page=12&q%5Bname_or_description_cont%5D=sh" for 127.0.0.1 at 2015-02-12 01:49:05 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12", "q"=>{"name_or_description_cont"=>"sh"}} Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.8ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:49:05.686349') AND ("spree_products".available_on <= '2015-02-12 06:49:05.687441') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%sh%' OR "spree_products"."description" LIKE '%sh%')) LIMIT 12 OFFSET 0) subquery_for_count  (0.9ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:49:05.686349') AND ("spree_products".available_on <= '2015-02-12 06:49:05.687441') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%sh%' OR "spree_products"."description" LIKE '%sh%')) Spree::Product Load (1.1ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:49:05.686349') AND ("spree_products".available_on <= '2015-02-12 06:49:05.687441') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%sh%' OR "spree_products"."description" LIKE '%sh%')) LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (5, 10) Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (5, 10) Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (7, 11, 10) Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (5, 10) Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (5, 10) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.3ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (5, 10) Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (5, 10) Spree::ProductProperty Load (0.6ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (5, 10) ORDER BY spree_product_properties.position Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (5, 10) ORDER BY "spree_variants".position ASC Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (833.9ms) Completed 200 OK in 888ms (Views: 842.6ms | ActiveRecord: 15.9ms) Started GET "/api/products?page=1&per_page=12&q%5Bname_or_description_cont%5D=shi" for 127.0.0.1 at 2015-02-12 01:49:06 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12", "q"=>{"name_or_description_cont"=>"shi"}} Spree::User Load (0.9ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.8ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:49:06.663754') AND ("spree_products".available_on <= '2015-02-12 06:49:06.664733') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shi%' OR "spree_products"."description" LIKE '%shi%')) LIMIT 12 OFFSET 0) subquery_for_count  (0.7ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:49:06.663754') AND ("spree_products".available_on <= '2015-02-12 06:49:06.664733') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shi%' OR "spree_products"."description" LIKE '%shi%')) Spree::Product Load (0.8ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:49:06.663754') AND ("spree_products".available_on <= '2015-02-12 06:49:06.664733') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shi%' OR "spree_products"."description" LIKE '%shi%')) LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (5, 10) Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (5, 10) Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (7, 11, 10) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (5, 10) Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (5, 10) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.3ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (5, 10) Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (5, 10) Spree::ProductProperty Load (0.6ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (5, 10) ORDER BY spree_product_properties.position Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (5, 10) ORDER BY "spree_variants".position ASC Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (855.1ms) Completed 200 OK in 912ms (Views: 863.1ms | ActiveRecord: 15.7ms) Started GET "/api/products?page=1&per_page=12&q%5Bname_or_description_cont%5D=shir" for 127.0.0.1 at 2015-02-12 01:49:07 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12", "q"=>{"name_or_description_cont"=>"shir"}} Spree::User Load (1.2ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.1ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.8ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:49:07.653282') AND ("spree_products".available_on <= '2015-02-12 06:49:07.654195') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shir%' OR "spree_products"."description" LIKE '%shir%')) LIMIT 12 OFFSET 0) subquery_for_count  (0.7ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:49:07.653282') AND ("spree_products".available_on <= '2015-02-12 06:49:07.654195') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shir%' OR "spree_products"."description" LIKE '%shir%')) Spree::Product Load (0.8ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:49:07.653282') AND ("spree_products".available_on <= '2015-02-12 06:49:07.654195') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shir%' OR "spree_products"."description" LIKE '%shir%')) LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (5, 10) Spree::Classification Load (0.5ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (5, 10) Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (7, 11, 10) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (5, 10) Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (5, 10) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.3ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (5, 10) Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (5, 10) Spree::ProductProperty Load (0.6ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (5, 10) ORDER BY spree_product_properties.position Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (5, 10) ORDER BY "spree_variants".position ASC Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (835.3ms) Completed 200 OK in 893ms (Views: 843.8ms | ActiveRecord: 16.1ms) Started GET "/api/products?page=1&per_page=12&q%5Bname_or_description_cont%5D=shirt" for 127.0.0.1 at 2015-02-12 01:49:08 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12", "q"=>{"name_or_description_cont"=>"shirt"}} Spree::User Load (0.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.8ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:49:08.615322') AND ("spree_products".available_on <= '2015-02-12 06:49:08.616270') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shirt%' OR "spree_products"."description" LIKE '%shirt%')) LIMIT 12 OFFSET 0) subquery_for_count  (0.6ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:49:08.615322') AND ("spree_products".available_on <= '2015-02-12 06:49:08.616270') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shirt%' OR "spree_products"."description" LIKE '%shirt%')) Spree::Product Load (0.8ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:49:08.615322') AND ("spree_products".available_on <= '2015-02-12 06:49:08.616270') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shirt%' OR "spree_products"."description" LIKE '%shirt%')) LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (5, 10) Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (5, 10) Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (7, 11, 10) Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (5, 10) Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (5, 10) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.3ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (5, 10) Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (5, 10) Spree::ProductProperty Load (0.7ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (5, 10) ORDER BY spree_product_properties.position Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (5, 10) ORDER BY "spree_variants".position ASC Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (872.0ms) Completed 200 OK in 924ms (Views: 879.8ms | ActiveRecord: 14.6ms) Started GET "/api/products?page=1&per_page=12&q%5Bname_or_description_cont%5D=p" for 127.0.0.1 at 2015-02-12 01:49:09 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12", "q"=>{"name_or_description_cont"=>"p"}} Spree::User Load (0.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.1ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.8ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:49:09.618852') AND ("spree_products".available_on <= '2015-02-12 06:49:09.619714') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%p%' OR "spree_products"."description" LIKE '%p%')) LIMIT 12 OFFSET 0) subquery_for_count  (0.7ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:49:09.618852') AND ("spree_products".available_on <= '2015-02-12 06:49:09.619714') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%p%' OR "spree_products"."description" LIKE '%p%')) Spree::Product Load (1.2ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:49:09.618852') AND ("spree_products".available_on <= '2015-02-12 06:49:09.619714') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%p%' OR "spree_products"."description" LIKE '%p%')) LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.5ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Image Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.3ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Price Load (0.7ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::ProductProperty Load (1.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY spree_product_properties.position Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_variants".position ASC Spree::Image Load (1.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.5ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 9]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 9]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 9]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 11]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 11]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 11]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 12]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 12]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 12]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (6183.7ms) Completed 200 OK in 6235ms (Views: 6160.4ms | ActiveRecord: 46.6ms) Started GET "/api/products?page=1&per_page=12&q%5Bname_or_description_cont%5D=pr" for 127.0.0.1 at 2015-02-12 01:49:15 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12", "q"=>{"name_or_description_cont"=>"pr"}} Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.1ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (1.1ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:49:15.932752') AND ("spree_products".available_on <= '2015-02-12 06:49:15.933676') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%pr%' OR "spree_products"."description" LIKE '%pr%')) LIMIT 12 OFFSET 0) subquery_for_count  (0.7ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:49:15.932752') AND ("spree_products".available_on <= '2015-02-12 06:49:15.933676') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%pr%' OR "spree_products"."description" LIKE '%pr%')) Spree::Product Load (1.0ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:49:15.932752') AND ("spree_products".available_on <= '2015-02-12 06:49:15.933676') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%pr%' OR "spree_products"."description" LIKE '%pr%')) LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (8, 9, 10, 11, 12, 15, 16) Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.5ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (8, 9, 10, 11, 12, 15, 16) Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (7, 10, 6, 3, 4) Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (8, 9, 10, 11, 12, 15, 16) Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (8, 9, 10, 11, 12, 15, 16) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.4ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (8, 9, 10, 11, 12, 15, 16) Spree::Price Load (0.6ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (8, 9, 10, 11, 12, 15, 16) Spree::ProductProperty Load (0.8ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (8, 9, 10, 11, 12, 15, 16) ORDER BY spree_product_properties.position Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (8, 9, 10, 11, 12, 15, 16) ORDER BY "spree_variants".position ASC Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 9]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 9]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 9]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 11]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 11]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 11]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 12]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 12]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 12]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 15]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 15]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 15]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 15 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 15 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 4]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 16]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 16]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 16]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 16 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 16 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (2662.1ms) Completed 200 OK in 2714ms (Views: 2659.5ms | ActiveRecord: 25.7ms) Started GET "/api/products?page=1&per_page=12&q%5Bname_or_description_cont%5D=s" for 127.0.0.1 at 2015-02-12 01:49:18 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12", "q"=>{"name_or_description_cont"=>"s"}} Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.1ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (1.0ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:49:18.720212') AND ("spree_products".available_on <= '2015-02-12 06:49:18.721116') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%s%' OR "spree_products"."description" LIKE '%s%')) LIMIT 12 OFFSET 0) subquery_for_count  (0.8ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:49:18.720212') AND ("spree_products".available_on <= '2015-02-12 06:49:18.721116') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%s%' OR "spree_products"."description" LIKE '%s%')) Spree::Product Load (1.2ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:49:18.720212') AND ("spree_products".available_on <= '2015-02-12 06:49:18.721116') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%s%' OR "spree_products"."description" LIKE '%s%')) LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.6ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Image Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.3ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Price Load (0.7ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::ProductProperty Load (1.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY spree_product_properties.position Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_variants".position ASC Spree::Image Load (1.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.5ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 9]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 9]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 9]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 11]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 11]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 11]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 12]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 12]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 12]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (6283.3ms) Completed 200 OK in 6332ms (Views: 6258.1ms | ActiveRecord: 48.4ms) Started GET "/api/products?page=1&per_page=12&q%5Bname_or_description_cont%5D=sh" for 127.0.0.1 at 2015-02-12 01:49:25 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12", "q"=>{"name_or_description_cont"=>"sh"}} Spree::User Load (0.5ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.8ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:49:25.126344') AND ("spree_products".available_on <= '2015-02-12 06:49:25.127420') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%sh%' OR "spree_products"."description" LIKE '%sh%')) LIMIT 12 OFFSET 0) subquery_for_count  (0.7ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:49:25.126344') AND ("spree_products".available_on <= '2015-02-12 06:49:25.127420') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%sh%' OR "spree_products"."description" LIKE '%sh%')) Spree::Product Load (0.7ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:49:25.126344') AND ("spree_products".available_on <= '2015-02-12 06:49:25.127420') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%sh%' OR "spree_products"."description" LIKE '%sh%')) LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (5, 10) Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (5, 10) Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (7, 11, 10) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (5, 10) Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (5, 10) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.3ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (5, 10) Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (5, 10) Spree::ProductProperty Load (0.6ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (5, 10) ORDER BY spree_product_properties.position Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (5, 10) ORDER BY "spree_variants".position ASC Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (905.2ms) Completed 200 OK in 956ms (Views: 913.8ms | ActiveRecord: 14.7ms) Started GET "/api/products?page=1&per_page=12&q%5Bname_or_description_cont%5D=shi" for 127.0.0.1 at 2015-02-12 01:49:26 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12", "q"=>{"name_or_description_cont"=>"shi"}} Spree::User Load (0.8ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.1ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.7ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:49:26.152930') AND ("spree_products".available_on <= '2015-02-12 06:49:26.153806') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shi%' OR "spree_products"."description" LIKE '%shi%')) LIMIT 12 OFFSET 0) subquery_for_count  (0.7ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:49:26.152930') AND ("spree_products".available_on <= '2015-02-12 06:49:26.153806') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shi%' OR "spree_products"."description" LIKE '%shi%')) Spree::Product Load (1.3ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:49:26.152930') AND ("spree_products".available_on <= '2015-02-12 06:49:26.153806') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shi%' OR "spree_products"."description" LIKE '%shi%')) LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (5, 10) Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (5, 10) Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (7, 11, 10) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (5, 10) Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (5, 10) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.3ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (5, 10) Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (5, 10) Spree::ProductProperty Load (0.7ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (5, 10) ORDER BY spree_product_properties.position Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (5, 10) ORDER BY "spree_variants".position ASC Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (892.0ms) Completed 200 OK in 941ms (Views: 900.7ms | ActiveRecord: 15.1ms) Started GET "/api/products?page=1&per_page=12&q%5Bname_or_description_cont%5D=shir" for 127.0.0.1 at 2015-02-12 01:49:27 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12", "q"=>{"name_or_description_cont"=>"shir"}} Spree::User Load (1.0ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (1.0ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:49:27.191095') AND ("spree_products".available_on <= '2015-02-12 06:49:27.192388') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shir%' OR "spree_products"."description" LIKE '%shir%')) LIMIT 12 OFFSET 0) subquery_for_count  (0.6ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:49:27.191095') AND ("spree_products".available_on <= '2015-02-12 06:49:27.192388') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shir%' OR "spree_products"."description" LIKE '%shir%')) Spree::Product Load (1.2ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:49:27.191095') AND ("spree_products".available_on <= '2015-02-12 06:49:27.192388') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shir%' OR "spree_products"."description" LIKE '%shir%')) LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (5, 10) Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (5, 10) Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (7, 11, 10) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (5, 10) Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (5, 10) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.3ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (5, 10) Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (5, 10) Spree::ProductProperty Load (0.8ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (5, 10) ORDER BY spree_product_properties.position Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (5, 10) ORDER BY "spree_variants".position ASC Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (940.2ms) Completed 200 OK in 1010ms (Views: 956.9ms | ActiveRecord: 17.3ms) Started GET "/" for 127.0.0.1 at 2015-02-12 01:52:45 -0500 Processing by Sprangular::HomeController#index as HTML Spree::User Load (1.0ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (1.1ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.1ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.6ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.6ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 15]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 16]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.5ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (1.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (8457.0ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (7600.2ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (17446.1ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (406.7ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.0ms) Completed 200 OK in 40936ms (Views: 40830.6ms | ActiveRecord: 64.0ms) Started GET "/assets/credit_cards/credit_card.html" for 127.0.0.1 at 2015-02-12 01:53:26 -0500 Started GET "/assets/addresses/address.html" for 127.0.0.1 at 2015-02-12 01:53:26 -0500 Started GET "/api/products?page=1&per_page=12&q%5Bname_or_description_cont%5D=s" for 127.0.0.1 at 2015-02-12 01:53:26 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12", "q"=>{"name_or_description_cont"=>"s"}} Spree::User Load (0.8ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.9ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:53:26.956875') AND ("spree_products".available_on <= '2015-02-12 06:53:26.958252') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%s%' OR "spree_products"."description" LIKE '%s%')) LIMIT 12 OFFSET 0) subquery_for_count  (0.8ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:53:26.956875') AND ("spree_products".available_on <= '2015-02-12 06:53:26.958252') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%s%' OR "spree_products"."description" LIKE '%s%')) Spree::Product Load (2.0ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:53:26.956875') AND ("spree_products".available_on <= '2015-02-12 06:53:26.958252') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%s%' OR "spree_products"."description" LIKE '%s%')) LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.6ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.7ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (1.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Image Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.4ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Price Load (0.7ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::ProductProperty Load (2.6ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY spree_product_properties.position Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_variants".position ASC Spree::Image Load (1.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.6ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.6ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 9]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 9]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 9]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 11]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 11]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 11]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 12]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 12]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 12]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't'  (1.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (6680.9ms) Completed 200 OK in 6743ms (Views: 6650.8ms | ActiveRecord: 57.0ms) Started GET "/api/products?page=1&per_page=12&q%5Bname_or_description_cont%5D=sh" for 127.0.0.1 at 2015-02-12 01:53:33 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12", "q"=>{"name_or_description_cont"=>"sh"}} Spree::User Load (0.5ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.9ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:53:33.803808') AND ("spree_products".available_on <= '2015-02-12 06:53:33.804922') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%sh%' OR "spree_products"."description" LIKE '%sh%')) LIMIT 12 OFFSET 0) subquery_for_count  (0.6ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:53:33.803808') AND ("spree_products".available_on <= '2015-02-12 06:53:33.804922') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%sh%' OR "spree_products"."description" LIKE '%sh%')) Spree::Product Load (0.7ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:53:33.803808') AND ("spree_products".available_on <= '2015-02-12 06:53:33.804922') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%sh%' OR "spree_products"."description" LIKE '%sh%')) LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (5, 10) Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (5, 10) Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (7, 11, 10) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (5, 10) Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (5, 10) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.3ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (5, 10) Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (5, 10) Spree::ProductProperty Load (0.6ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (5, 10) ORDER BY spree_product_properties.position Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (5, 10) ORDER BY "spree_variants".position ASC Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (819.5ms) Completed 200 OK in 898ms (Views: 827.0ms | ActiveRecord: 14.3ms) Started GET "/api/products?page=1&per_page=12&q%5Bname_or_description_cont%5D=shi" for 127.0.0.1 at 2015-02-12 01:53:34 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12", "q"=>{"name_or_description_cont"=>"shi"}} Spree::User Load (0.5ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.7ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:53:34.740954') AND ("spree_products".available_on <= '2015-02-12 06:53:34.741871') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shi%' OR "spree_products"."description" LIKE '%shi%')) LIMIT 12 OFFSET 0) subquery_for_count  (0.6ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:53:34.740954') AND ("spree_products".available_on <= '2015-02-12 06:53:34.741871') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shi%' OR "spree_products"."description" LIKE '%shi%')) Spree::Product Load (0.8ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:53:34.740954') AND ("spree_products".available_on <= '2015-02-12 06:53:34.741871') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shi%' OR "spree_products"."description" LIKE '%shi%')) LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (5, 10) Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (5, 10) Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (7, 11, 10) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (5, 10) Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (5, 10) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.3ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (5, 10) Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (5, 10) Spree::ProductProperty Load (0.8ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (5, 10) ORDER BY spree_product_properties.position Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (5, 10) ORDER BY "spree_variants".position ASC Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (907.9ms) Completed 200 OK in 956ms (Views: 915.8ms | ActiveRecord: 14.6ms) Started GET "/api/products?page=1&per_page=12&q%5Bname_or_description_cont%5D=shir" for 127.0.0.1 at 2015-02-12 01:53:35 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12", "q"=>{"name_or_description_cont"=>"shir"}} Spree::User Load (0.5ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.1ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.7ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:53:35.764700') AND ("spree_products".available_on <= '2015-02-12 06:53:35.765604') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shir%' OR "spree_products"."description" LIKE '%shir%')) LIMIT 12 OFFSET 0) subquery_for_count  (0.7ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:53:35.764700') AND ("spree_products".available_on <= '2015-02-12 06:53:35.765604') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shir%' OR "spree_products"."description" LIKE '%shir%')) Spree::Product Load (0.8ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:53:35.764700') AND ("spree_products".available_on <= '2015-02-12 06:53:35.765604') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shir%' OR "spree_products"."description" LIKE '%shir%')) LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (5, 10) Spree::Classification Load (0.5ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (5, 10) Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (7, 11, 10) Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (5, 10) Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (5, 10) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.4ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (5, 10) Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (5, 10) Spree::ProductProperty Load (0.7ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (5, 10) ORDER BY spree_product_properties.position Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (5, 10) ORDER BY "spree_variants".position ASC Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (871.6ms) Completed 200 OK in 920ms (Views: 880.2ms | ActiveRecord: 14.5ms) Started GET "/api/products?page=1&per_page=12&q%5Bname_or_description_cont%5D=shirt" for 127.0.0.1 at 2015-02-12 01:53:36 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12", "q"=>{"name_or_description_cont"=>"shirt"}} Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.7ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:53:36.771552') AND ("spree_products".available_on <= '2015-02-12 06:53:36.772677') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shirt%' OR "spree_products"."description" LIKE '%shirt%')) LIMIT 12 OFFSET 0) subquery_for_count  (0.7ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:53:36.771552') AND ("spree_products".available_on <= '2015-02-12 06:53:36.772677') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shirt%' OR "spree_products"."description" LIKE '%shirt%')) Spree::Product Load (0.8ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:53:36.771552') AND ("spree_products".available_on <= '2015-02-12 06:53:36.772677') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shirt%' OR "spree_products"."description" LIKE '%shirt%')) LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (5, 10) Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (5, 10) Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (7, 11, 10) Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (5, 10) Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (5, 10) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.3ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (5, 10) Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (5, 10) Spree::ProductProperty Load (0.7ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (5, 10) ORDER BY spree_product_properties.position Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (5, 10) ORDER BY "spree_variants".position ASC Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (1.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (962.9ms) Completed 200 OK in 1017ms (Views: 969.3ms | ActiveRecord: 17.0ms) Started GET "/api/products?page=1&per_page=12&q%5Bname_or_description_cont%5D=shirt" for 127.0.0.1 at 2015-02-12 01:53:37 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12", "q"=>{"name_or_description_cont"=>"shirt"}} Spree::User Load (0.5ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.7ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:53:37.850140') AND ("spree_products".available_on <= '2015-02-12 06:53:37.851091') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shirt%' OR "spree_products"."description" LIKE '%shirt%')) LIMIT 12 OFFSET 0) subquery_for_count  (0.6ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:53:37.850140') AND ("spree_products".available_on <= '2015-02-12 06:53:37.851091') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shirt%' OR "spree_products"."description" LIKE '%shirt%')) Spree::Product Load (0.9ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:53:37.850140') AND ("spree_products".available_on <= '2015-02-12 06:53:37.851091') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shirt%' OR "spree_products"."description" LIKE '%shirt%')) LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (5, 10) Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (5, 10) Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (7, 11, 10) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (5, 10) Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (5, 10) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.3ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (5, 10) Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (5, 10) Spree::ProductProperty Load (0.6ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (5, 10) ORDER BY spree_product_properties.position Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (5, 10) ORDER BY "spree_variants".position ASC Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (816.6ms) Completed 200 OK in 863ms (Views: 824.5ms | ActiveRecord: 13.9ms) Started GET "/api/products?page=1&per_page=12&q%5Bname_or_description_cont%5D=shirt" for 127.0.0.1 at 2015-02-12 01:53:38 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12", "q"=>{"name_or_description_cont"=>"shirt"}} Spree::User Load (0.5ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.8ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:53:38.775971') AND ("spree_products".available_on <= '2015-02-12 06:53:38.777080') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shirt%' OR "spree_products"."description" LIKE '%shirt%')) LIMIT 12 OFFSET 0) subquery_for_count  (1.0ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:53:38.775971') AND ("spree_products".available_on <= '2015-02-12 06:53:38.777080') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shirt%' OR "spree_products"."description" LIKE '%shirt%')) Spree::Product Load (0.9ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:53:38.775971') AND ("spree_products".available_on <= '2015-02-12 06:53:38.777080') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shirt%' OR "spree_products"."description" LIKE '%shirt%')) LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (5, 10) Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (5, 10) Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (7, 11, 10) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (5, 10) Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (5, 10) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.3ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (5, 10) Spree::Price Load (0.6ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (5, 10) Spree::ProductProperty Load (0.7ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (5, 10) ORDER BY spree_product_properties.position Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (5, 10) ORDER BY "spree_variants".position ASC Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (896.2ms) Completed 200 OK in 943ms (Views: 902.6ms | ActiveRecord: 15.6ms) Started GET "/api/products?page=1&per_page=12&q%5Bname_or_description_cont%5D=shir" for 127.0.0.1 at 2015-02-12 01:53:39 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12", "q"=>{"name_or_description_cont"=>"shir"}} Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.1ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.8ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:53:39.792334') AND ("spree_products".available_on <= '2015-02-12 06:53:39.793298') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shir%' OR "spree_products"."description" LIKE '%shir%')) LIMIT 12 OFFSET 0) subquery_for_count  (0.7ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:53:39.792334') AND ("spree_products".available_on <= '2015-02-12 06:53:39.793298') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shir%' OR "spree_products"."description" LIKE '%shir%')) Spree::Product Load (0.8ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:53:39.792334') AND ("spree_products".available_on <= '2015-02-12 06:53:39.793298') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shir%' OR "spree_products"."description" LIKE '%shir%')) LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (5, 10) Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (5, 10) Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (7, 11, 10) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (5, 10) Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (5, 10) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.4ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (5, 10) Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (5, 10) Spree::ProductProperty Load (0.6ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (5, 10) ORDER BY spree_product_properties.position Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (5, 10) ORDER BY "spree_variants".position ASC Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (831.6ms) Completed 200 OK in 884ms (Views: 839.6ms | ActiveRecord: 14.0ms) Started GET "/api/products?page=1&per_page=12&q%5Bname_or_description_cont%5D=shir" for 127.0.0.1 at 2015-02-12 01:53:40 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12", "q"=>{"name_or_description_cont"=>"shir"}} Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.8ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:53:40.747185') AND ("spree_products".available_on <= '2015-02-12 06:53:40.748616') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shir%' OR "spree_products"."description" LIKE '%shir%')) LIMIT 12 OFFSET 0) subquery_for_count  (0.6ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:53:40.747185') AND ("spree_products".available_on <= '2015-02-12 06:53:40.748616') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shir%' OR "spree_products"."description" LIKE '%shir%')) Spree::Product Load (0.8ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:53:40.747185') AND ("spree_products".available_on <= '2015-02-12 06:53:40.748616') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shir%' OR "spree_products"."description" LIKE '%shir%')) LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (5, 10) Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (5, 10) Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (7, 11, 10) Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (5, 10) Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (5, 10) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.3ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (5, 10) Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (5, 10) Spree::ProductProperty Load (0.6ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (5, 10) ORDER BY spree_product_properties.position Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (5, 10) ORDER BY "spree_variants".position ASC Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (807.0ms) Completed 200 OK in 858ms (Views: 814.9ms | ActiveRecord: 14.5ms) Started GET "/api/products?page=1&per_page=12&q%5Bname_or_description_cont%5D=shi" for 127.0.0.1 at 2015-02-12 01:53:41 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12", "q"=>{"name_or_description_cont"=>"shi"}} Spree::User Load (0.5ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.8ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:53:41.672558') AND ("spree_products".available_on <= '2015-02-12 06:53:41.674018') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shi%' OR "spree_products"."description" LIKE '%shi%')) LIMIT 12 OFFSET 0) subquery_for_count  (0.7ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:53:41.672558') AND ("spree_products".available_on <= '2015-02-12 06:53:41.674018') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shi%' OR "spree_products"."description" LIKE '%shi%')) Spree::Product Load (0.8ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:53:41.672558') AND ("spree_products".available_on <= '2015-02-12 06:53:41.674018') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shi%' OR "spree_products"."description" LIKE '%shi%')) LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (5, 10) Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (5, 10) Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (7, 11, 10) Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (5, 10) Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (5, 10) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.3ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (5, 10) Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (5, 10) Spree::ProductProperty Load (0.6ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (5, 10) ORDER BY spree_product_properties.position Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (5, 10) ORDER BY "spree_variants".position ASC Spree::Price Load (1.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (896.8ms) Completed 200 OK in 948ms (Views: 902.4ms | ActiveRecord: 16.8ms) Started GET "/api/products?page=1&per_page=12" for 127.0.0.1 at 2015-02-12 01:53:42 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12"} Spree::User Load (1.0ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.4ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.9ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:53:42.728070') AND ("spree_products".available_on <= '2015-02-12 06:53:42.730023') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0) subquery_for_count  (0.7ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:53:42.728070') AND ("spree_products".available_on <= '2015-02-12 06:53:42.730023') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (1.2ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:53:42.728070') AND ("spree_products".available_on <= '2015-02-12 06:53:42.730023') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.6ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Image Load (1.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.9ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Price Load (1.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::ProductProperty Load (2.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY spree_product_properties.position Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_variants".position ASC Spree::Image Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.4ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 9]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 9]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 9]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 11]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 11]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 11]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 12]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 12]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 12]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (6470.7ms) Completed 200 OK in 6533ms (Views: 6444.7ms | ActiveRecord: 54.9ms) Started GET "/?a" for 127.0.0.1 at 2015-02-12 01:53:49 -0500 Processing by Sprangular::HomeController#index as HTML Parameters: {"a"=>nil} Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.1ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.7ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.3ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.7ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.5ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.5ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.7ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 15]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 16]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.8ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (8383.8ms) CACHE (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (7054.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (16751.0ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (348.6ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.6ms) Completed 200 OK in 20470ms (Views: 20384.2ms | ActiveRecord: 63.8ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-12 01:54:10 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:10 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-12 01:54:10 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:11 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:11 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:11 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:11 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:11 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:11 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:11 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:11 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:11 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:11 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:12 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:12 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:12 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:12 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:12 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:12 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:12 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:12 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:12 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:12 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:12 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:12 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:12 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:13 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:13 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:13 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:13 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:13 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:13 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:13 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:13 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:13 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:13 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:13 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:13 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:14 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:14 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:14 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:14 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:14 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:14 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:14 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:14 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:14 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:14 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:14 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:14 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:15 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:15 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:15 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:15 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:15 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:15 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:15 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:15 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:15 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:15 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:15 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:15 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:15 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:16 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:16 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:16 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:16 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:16 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:16 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:16 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:16 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:16 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:16 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:16 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:16 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:17 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:17 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:17 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:17 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:17 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:17 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:17 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:17 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:17 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:17 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:18 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:18 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:18 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:19 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:20 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:20 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:20 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:21 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:21 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:21 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:21 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:21 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:21 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:21 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:21 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:21 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:21 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:22 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:22 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:22 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:22 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:22 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:22 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-12 01:54:22 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-12 01:54:24 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-12 01:54:27 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (0.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (2.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (216.0ms) Completed 200 OK in 296ms (Views: 235.2ms | ActiveRecord: 14.5ms) Started GET "/api/products?page=1&per_page=12" for 127.0.0.1 at 2015-02-12 01:54:27 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12"} Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (1.1ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:54:28.013999') AND ("spree_products".available_on <= '2015-02-12 06:54:28.015765') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0) subquery_for_count  (0.7ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:54:28.013999') AND ("spree_products".available_on <= '2015-02-12 06:54:28.015765') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (1.2ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:54:28.013999') AND ("spree_products".available_on <= '2015-02-12 06:54:28.015765') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.7ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Image Load (2.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.4ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Price Load (1.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::ProductProperty Load (1.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY spree_product_properties.position Spree::Property Load (0.8ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_variants".position ASC Spree::Image Load (1.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.5ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 9]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 9]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 9]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 11]]  (0.6ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 11]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 11]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (1.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 12]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 12]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 12]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't'  (1.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (6499.2ms) Completed 200 OK in 6554ms (Views: 6470.9ms | ActiveRecord: 55.2ms) Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-12 01:54:34 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.1ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (3.8ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (24.8ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (464.2ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (5.6ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1983.9ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-12 01:54:36 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-12 01:54:36 -0500 Started GET "/?a" for 127.0.0.1 at 2015-02-12 01:56:08 -0500 Processing by Sprangular::HomeController#index as HTML Parameters: {"a"=>nil} Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 15]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 16]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.3ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (8013.7ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (7238.3ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (16111.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (382.8ms) Spree::Tracker Load (0.5ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.2ms) Completed 200 OK in 22372ms (Views: 22297.1ms | ActiveRecord: 55.9ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-12 01:56:31 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-12 01:56:31 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:31 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:31 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:31 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:32 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:32 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:32 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:32 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:32 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:32 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:32 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:32 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:32 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:33 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:33 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:33 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:33 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:33 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:33 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:33 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:33 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:33 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:33 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:33 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:33 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:33 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:34 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:34 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:34 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:34 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:34 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:34 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:34 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:34 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:34 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:34 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:34 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:34 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:34 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:35 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:35 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:35 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:35 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:35 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:35 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:35 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:35 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:35 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:35 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:36 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:36 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:36 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:36 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:36 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:36 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:36 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:36 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:36 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:36 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:36 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:36 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:37 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:37 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:37 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:37 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:37 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:37 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:37 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:37 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:37 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:37 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:37 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:38 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:38 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:38 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:38 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:38 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:38 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:38 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:38 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:38 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:38 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:38 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:39 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:39 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:39 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-12 01:56:39 -0500 Started GET "/api/products?page=1&per_page=12" for 127.0.0.1 at 2015-02-12 01:56:40 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12"} Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.9ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:56:41.063611') AND ("spree_products".available_on <= '2015-02-12 06:56:41.064769') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0) subquery_for_count  (1.0ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:56:41.063611') AND ("spree_products".available_on <= '2015-02-12 06:56:41.064769') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (1.2ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 06:56:41.063611') AND ("spree_products".available_on <= '2015-02-12 06:56:41.064769') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.7ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (1.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (1.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Image Load (1.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.5ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Price Load (0.7ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::ProductProperty Load (2.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY spree_product_properties.position Spree::Property Load (0.8ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (1.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_variants".position ASC Spree::Image Load (1.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.5ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.9ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (1.8ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (1.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (1.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (1.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (1.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (1.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 9]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 9]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 9]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 11]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 11]]  (1.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 11]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 12]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 12]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 12]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (7471.2ms) Completed 200 OK in 7536ms (Views: 7430.7ms | ActiveRecord: 70.5ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-12 01:56:48 -0500 Started GET "/?a" for 127.0.0.1 at 2015-02-12 01:59:33 -0500 Processing by Sprangular::HomeController#index as HTML Parameters: {"a"=>nil} Spree::User Load (0.8ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (14.9ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.8ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.3ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.6ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.5ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.6ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 15]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 16]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.6ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.3ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (8806.1ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] CACHE (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (7340.5ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (17539.0ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (433.6ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.2ms) Completed 200 OK in 22982ms (Views: 22873.4ms | ActiveRecord: 78.9ms) Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-12 01:59:56 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (0.8ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.8ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.5ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (254.4ms) Completed 200 OK in 333ms (Views: 277.0ms | ActiveRecord: 13.6ms) Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-12 01:59:57 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.6ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.3ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (11.7ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (220.7ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.2ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1454.9ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-12 01:59:58 -0500 Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-12 01:59:58 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-12 01:59:58 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-12 01:59:59 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-12 01:59:59 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-12 01:59:59 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-12 01:59:59 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-12 01:59:59 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-12 01:59:59 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-12 01:59:59 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-12 01:59:59 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-12 01:59:59 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-12 01:59:59 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-12 01:59:59 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:00 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:00 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:00 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:00 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:00 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:00 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:00 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:00 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:00 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:00 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:00 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:00 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:01 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:01 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:01 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:01 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:01 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:01 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:01 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:01 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:01 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:01 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:01 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:01 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:01 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:01 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:02 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:02 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:02 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:02 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:02 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:02 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:02 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:02 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:02 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:02 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:02 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:02 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:03 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:03 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:03 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:03 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:03 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:03 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:03 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:03 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:03 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:03 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:03 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:03 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:03 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:04 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:04 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:04 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:04 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:04 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:04 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:04 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:04 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:04 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:04 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:04 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:04 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:04 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:04 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:05 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:05 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:05 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:05 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:05 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:05 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:05 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:05 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:05 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-12 02:00:06 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-12 02:02:03 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-12 02:02:03 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-12 02:02:03 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-12 02:02:03 -0500 Started GET "/api/products?page=1&per_page=12" for 127.0.0.1 at 2015-02-12 02:02:04 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12"} Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (1.0ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 07:02:04.718335') AND ("spree_products".available_on <= '2015-02-12 07:02:04.720119') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0) subquery_for_count  (1.1ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 07:02:04.718335') AND ("spree_products".available_on <= '2015-02-12 07:02:04.720119') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (1.4ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 07:02:04.718335') AND ("spree_products".available_on <= '2015-02-12 07:02:04.720119') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.7ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.9ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (1.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Image Load (1.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.5ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Price Load (9.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::ProductProperty Load (1.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY spree_product_properties.position Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.9ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_variants".position ASC Spree::Image Load (1.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.6ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.8ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.9ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 9]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 9]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 9]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 11]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 11]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 11]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 12]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 12]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 12]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (6918.2ms) Completed 200 OK in 6973ms (Views: 6879.6ms | ActiveRecord: 66.0ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-12 02:02:11 -0500 Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-12 02:02:11 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-12 02:02:11 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (1.0ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (198.5ms) Completed 200 OK in 254ms (Views: 214.7ms | ActiveRecord: 12.3ms) Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-12 02:02:12 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.4ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (3.4ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (28.4ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (354.9ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.1ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1749.8ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-12 02:02:14 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-12 02:02:14 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-12 02:02:14 -0500 Started GET "/api/products?page=1&per_page=12&q%5Bname_or_description_cont%5D=s" for 127.0.0.1 at 2015-02-12 02:02:22 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12", "q"=>{"name_or_description_cont"=>"s"}} Spree::User Load (0.5ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.8ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 07:02:22.711120') AND ("spree_products".available_on <= '2015-02-12 07:02:22.712043') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%s%' OR "spree_products"."description" LIKE '%s%')) LIMIT 12 OFFSET 0) subquery_for_count  (0.7ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 07:02:22.711120') AND ("spree_products".available_on <= '2015-02-12 07:02:22.712043') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%s%' OR "spree_products"."description" LIKE '%s%')) Spree::Product Load (1.0ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 07:02:22.711120') AND ("spree_products".available_on <= '2015-02-12 07:02:22.712043') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%s%' OR "spree_products"."description" LIKE '%s%')) LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.5ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Image Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.3ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Price Load (0.6ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::ProductProperty Load (1.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY spree_product_properties.position Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_variants".position ASC Spree::Image Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.7ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.8ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 9]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 9]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 9]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 11]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 11]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 11]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 12]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 12]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 12]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (6492.7ms) Completed 200 OK in 6540ms (Views: 6465.8ms | ActiveRecord: 49.2ms) Started GET "/api/products?page=1&per_page=12&q%5Bname_or_description_cont%5D=sh" for 127.0.0.1 at 2015-02-12 02:02:29 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12", "q"=>{"name_or_description_cont"=>"sh"}} Spree::User Load (0.9ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (1.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.8ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 07:02:29.378775') AND ("spree_products".available_on <= '2015-02-12 07:02:29.380673') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%sh%' OR "spree_products"."description" LIKE '%sh%')) LIMIT 12 OFFSET 0) subquery_for_count  (0.6ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 07:02:29.378775') AND ("spree_products".available_on <= '2015-02-12 07:02:29.380673') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%sh%' OR "spree_products"."description" LIKE '%sh%')) Spree::Product Load (1.1ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 07:02:29.378775') AND ("spree_products".available_on <= '2015-02-12 07:02:29.380673') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%sh%' OR "spree_products"."description" LIKE '%sh%')) LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (5, 10) Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (5, 10) Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (7, 11, 10) Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (5, 10) Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (5, 10) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.3ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (5, 10) Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (5, 10) Spree::ProductProperty Load (0.9ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (5, 10) ORDER BY spree_product_properties.position Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (5, 10) ORDER BY "spree_variants".position ASC Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (892.7ms) Completed 200 OK in 963ms (Views: 902.7ms | ActiveRecord: 18.5ms) Started GET "/api/products?page=1&per_page=12&q%5Bname_or_description_cont%5D=shi" for 127.0.0.1 at 2015-02-12 02:02:30 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12", "q"=>{"name_or_description_cont"=>"shi"}} Spree::User Load (0.5ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.1ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.7ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 07:02:30.411192') AND ("spree_products".available_on <= '2015-02-12 07:02:30.412139') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shi%' OR "spree_products"."description" LIKE '%shi%')) LIMIT 12 OFFSET 0) subquery_for_count  (0.7ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 07:02:30.411192') AND ("spree_products".available_on <= '2015-02-12 07:02:30.412139') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shi%' OR "spree_products"."description" LIKE '%shi%')) Spree::Product Load (0.8ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 07:02:30.411192') AND ("spree_products".available_on <= '2015-02-12 07:02:30.412139') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shi%' OR "spree_products"."description" LIKE '%shi%')) LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.3ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (5, 10) Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (5, 10) Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (7, 11, 10) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (5, 10) Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (5, 10) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.2ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (5, 10) Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (5, 10) Spree::ProductProperty Load (0.7ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (5, 10) ORDER BY spree_product_properties.position Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (5, 10) ORDER BY "spree_variants".position ASC Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (817.4ms) Completed 200 OK in 864ms (Views: 826.5ms | ActiveRecord: 13.7ms) Started GET "/api/products?page=1&per_page=12&q%5Bname_or_description_cont%5D=shir" for 127.0.0.1 at 2015-02-12 02:02:31 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12", "q"=>{"name_or_description_cont"=>"shir"}} Spree::User Load (0.9ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.9ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 07:02:31.379678') AND ("spree_products".available_on <= '2015-02-12 07:02:31.381635') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shir%' OR "spree_products"."description" LIKE '%shir%')) LIMIT 12 OFFSET 0) subquery_for_count  (0.7ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 07:02:31.379678') AND ("spree_products".available_on <= '2015-02-12 07:02:31.381635') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shir%' OR "spree_products"."description" LIKE '%shir%')) Spree::Product Load (0.8ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 07:02:31.379678') AND ("spree_products".available_on <= '2015-02-12 07:02:31.381635') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shir%' OR "spree_products"."description" LIKE '%shir%')) LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (5, 10) Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (5, 10) Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (7, 11, 10) Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (5, 10) Spree::Image Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (5, 10) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.4ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (5, 10) Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (5, 10) Spree::ProductProperty Load (0.7ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (5, 10) ORDER BY spree_product_properties.position Spree::Property Load (0.6ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (5, 10) ORDER BY "spree_variants".position ASC Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.6ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (924.2ms) Completed 200 OK in 987ms (Views: 930.5ms | ActiveRecord: 18.7ms) Started GET "/api/products?page=1&per_page=12&q%5Bname_or_description_cont%5D=shirt" for 127.0.0.1 at 2015-02-12 02:02:32 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12", "q"=>{"name_or_description_cont"=>"shirt"}} Spree::User Load (0.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.8ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 07:02:32.431637') AND ("spree_products".available_on <= '2015-02-12 07:02:32.432687') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shirt%' OR "spree_products"."description" LIKE '%shirt%')) LIMIT 12 OFFSET 0) subquery_for_count  (0.7ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 07:02:32.431637') AND ("spree_products".available_on <= '2015-02-12 07:02:32.432687') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shirt%' OR "spree_products"."description" LIKE '%shirt%')) Spree::Product Load (1.1ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-12 07:02:32.431637') AND ("spree_products".available_on <= '2015-02-12 07:02:32.432687') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' AND (("spree_products"."name" LIKE '%shirt%' OR "spree_products"."description" LIKE '%shirt%')) LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (5, 10) Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (5, 10) Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (7, 11, 10) Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (5, 10) Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (5, 10) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.3ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (5, 10) Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (5, 10) Spree::ProductProperty Load (0.7ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (5, 10) ORDER BY spree_product_properties.position Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (5, 10) ORDER BY "spree_variants".position ASC Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (849.3ms) Completed 200 OK in 900ms (Views: 857.7ms | ActiveRecord: 15.6ms) Started GET "/api/account" for 127.0.0.1 at 2015-02-12 02:55:26 -0500 Processing by Sprangular::AccountsController#show as JSON Spree::Preference Load (3.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/redirect_https_to_http' LIMIT 1 Spree::User Load (1.0ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Preference Load (1.7ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency' LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (1.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/display_currency' LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_symbol_position' LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/hide_cents' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_decimal_mark' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_thousands_separator' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_sign_before_symbol' LIMIT 1 Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.4ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.6ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/always_include_confirm_step' LIMIT 1 Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::PaymentMethod Load (0.6ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 15]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 16]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/track_inventory_levels' LIMIT 1  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.4ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.3ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (1.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (9140.6ms) Completed 200 OK in 9239ms (Views: 9109.7ms | ActiveRecord: 72.0ms) Started GET "/assets/account/show.html" for 127.0.0.1 at 2015-02-12 02:55:35 -0500 Started GET "/assets/account/edit.html" for 127.0.0.1 at 2015-02-12 02:55:36 -0500 Started GET "/assets/addresses/index.html" for 127.0.0.1 at 2015-02-12 02:55:36 -0500 Started GET "/assets/credit_cards/index.html" for 127.0.0.1 at 2015-02-12 02:55:36 -0500 Started GET "/assets/orders/index.html" for 127.0.0.1 at 2015-02-12 02:55:36 -0500 Started GET "/assets/addresses/address.html" for 127.0.0.1 at 2015-02-12 02:55:36 -0500 Started GET "/assets/credit_cards/credit_card.html" for 127.0.0.1 at 2015-02-12 02:55:36 -0500 Started GET "/" for 127.0.0.1 at 2015-02-13 18:01:06 -0500 Processing by Sprangular::HomeController#index as HTML Spree::User Load (16.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (7.6ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.1ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/logo' LIMIT 1 Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/default_country_id' LIMIT 1 Spree::PaymentMethod Load (0.9ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/products_per_page' LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.4ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.7ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.6ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.6ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.4ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 15]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 16]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.5ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (1.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (2.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.3ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.4ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::ShippingMethod Load (3.8ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.6ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.5ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (1.3ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.3ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.4ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (2.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 9]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.7ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (1.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.9ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (4.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (4.7ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.9ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (1.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.9ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (1.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (5.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.4ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.5ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (1.5ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (17479.9ms) CACHE (0.1ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (13175.3ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (32974.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (968.2ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.5ms) Completed 200 OK in 74386ms (Views: 74164.5ms | ActiveRecord: 145.5ms) Started GET "/spree/admin" for 127.0.0.1 at 2015-02-13 18:02:21 -0500 Processing by Spree::Admin::RootController#index as HTML Spree::Preference Load (0.6ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/backend_configuration/locale' LIMIT 1 Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/allow_ssl_in_development_and_test' LIMIT 1 Redirected to http://localhost:3000/spree/admin/orders Completed 302 Found in 38ms (ActiveRecord: 1.2ms) Started GET "/spree/admin/orders" for 127.0.0.1 at 2015-02-13 18:02:21 -0500 Processing by Spree::Admin::OrdersController#index as HTML Spree::Preference Load (0.6ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/backend_configuration/locale' LIMIT 1 Spree::User Load (1.1ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1  (0.4ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Spree::Preference Load (1.0ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/show_only_complete_orders_by_default' LIMIT 1 Spree::Preference Load (1.0ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/orders_per_page' LIMIT 1  (1.9ms) SELECT DISTINCT "spree_promotions"."name", "spree_promotions"."id" FROM "spree_promotions" INNER JOIN spree_orders_promotions ON spree_orders_promotions.promotion_id = spree_promotions.id  (2.6ms) SELECT "spree_variants"."sku", "spree_variants"."id" FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL  (0.8ms) SELECT DISTINCT COUNT(DISTINCT "spree_orders"."id") FROM "spree_orders" WHERE ("spree_orders"."completed_at" IS NOT NULL)  (0.9ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_orders"."id" AS count_column FROM "spree_orders" WHERE ("spree_orders"."completed_at" IS NOT NULL) LIMIT 15 OFFSET 0) subquery_for_count Spree::Order Load (4.5ms) SELECT DISTINCT "spree_orders".* FROM "spree_orders" WHERE ("spree_orders"."completed_at" IS NOT NULL) ORDER BY "spree_orders"."completed_at" DESC LIMIT 15 OFFSET 0 Spree::User Load (1.1ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/orders/index.html.erb within spree/layouts/admin (893.4ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_translations.html.erb (8.8ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_head.html.erb (40196.0ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_alert.html.erb (0.1ms) Deface: 1 overrides found for 'spree/admin/shared/_header' Deface: 'auth_admin_login_navigation_bar' matched 1 times with '[data-hook='admin_login_navigation_bar'], #admin_login_navigation_bar[data-hook]' Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/admin_interface_logo' LIMIT 1 Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree_auth_devise-e2ee95e53de6/lib/views/backend/spree/layouts/admin/_login_nav.html.erb (6.6ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_header.html.erb (67.7ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_tabs.html.erb (44.9ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_menu.html.erb (114.3ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_sub_menu.html.erb (2.2ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_content_header.html.erb (3.3ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_table_filter.html.erb (1.7ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_sidebar.html.erb (1.8ms) Completed 200 OK in 42332ms (Views: 42253.5ms | ActiveRecord: 21.9ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-13 18:03:04 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:04 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:04 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-13 18:03:04 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:05 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:05 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:05 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:05 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:05 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:05 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:05 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:06 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:06 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:06 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:06 -0500 Started GET "/assets/jquery.alerts/jquery.alerts.css?body=1" for 127.0.0.1 at 2015-02-13 18:03:06 -0500 Started GET "/assets/jquery.alerts/jquery.alerts.spree.css?body=1" for 127.0.0.1 at 2015-02-13 18:03:06 -0500 Started GET "/assets/responsive-tables.css?body=1" for 127.0.0.1 at 2015-02-13 18:03:07 -0500 Started GET "/assets/normalize.css?body=1" for 127.0.0.1 at 2015-02-13 18:03:07 -0500 Started GET "/assets/skeleton.css?body=1" for 127.0.0.1 at 2015-02-13 18:03:07 -0500 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2015-02-13 18:03:07 -0500 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2015-02-13 18:03:07 -0500 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2015-02-13 18:03:07 -0500 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2015-02-13 18:03:08 -0500 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2015-02-13 18:03:08 -0500 Started GET "/assets/jquery.powertip.css?body=1" for 127.0.0.1 at 2015-02-13 18:03:08 -0500 Started GET "/assets/select2.css?body=1" for 127.0.0.1 at 2015-02-13 18:03:08 -0500 Started GET "/assets/spree/backend/spree_admin.css?body=1" for 127.0.0.1 at 2015-02-13 18:03:08 -0500 Started GET "/assets/spree/backend.css?body=1" for 127.0.0.1 at 2015-02-13 18:03:08 -0500 Started GET "/assets/spree/backend/all.css?body=1" for 127.0.0.1 at 2015-02-13 18:03:08 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:09 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:09 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:09 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:09 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:09 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:09 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:09 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:09 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:10 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:10 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:10 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:10 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:10 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:10 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:10 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:10 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:10 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:10 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:11 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:11 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:11 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:11 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:11 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:11 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:11 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:11 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:11 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:11 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:11 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:11 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:12 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:12 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:12 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:12 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:12 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:12 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:12 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:12 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:12 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:12 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:13 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:13 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:13 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:13 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:13 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:13 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:13 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:13 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:13 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:13 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:13 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:14 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:14 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:14 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:14 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:14 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:14 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:14 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:14 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:14 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:14 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:14 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:15 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:15 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:15 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:15 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:15 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:15 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:15 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:15 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:16 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:16 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:16 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:16 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:16 -0500 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:17 -0500 Started GET "/assets/jquery-migrate-1.0.0.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:17 -0500 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:17 -0500 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:17 -0500 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:17 -0500 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:17 -0500 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:17 -0500 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:17 -0500 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:17 -0500 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:18 -0500 Started GET "/assets/modernizr.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:18 -0500 Started GET "/assets/jquery.cookie.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:18 -0500 Started GET "/assets/jquery.delayedobserver.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:18 -0500 Started GET "/assets/jquery.jstree/jquery.jstree.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:18 -0500 Started GET "/assets/jquery.alerts/jquery.alerts.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:18 -0500 Started GET "/assets/jquery.powertip.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:18 -0500 Started GET "/assets/jquery.vAlign.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:18 -0500 Started GET "/assets/css_browser_selector_dev.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:18 -0500 Started GET "/assets/spin.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:19 -0500 Started GET "/assets/trunk8.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:19 -0500 Started GET "/assets/jquery.adaptivemenu.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:19 -0500 Started GET "/assets/equalize.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:19 -0500 Started GET "/assets/responsive-tables.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:19 -0500 Started GET "/assets/jsuri.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:19 -0500 Started GET "/assets/spree.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:19 -0500 Started GET "/assets/select2.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:19 -0500 Started GET "/assets/spree/backend/spree-select2.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:19 -0500 Started GET "/assets/spree/backend/address_states.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:20 -0500 Started GET "/assets/spree/backend/adjustments.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:20 -0500 Started GET "/assets/spree/backend/admin.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:20 -0500 Started GET "/assets/handlebars.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:20 -0500 Started GET "/assets/spree/backend/handlebar_extensions.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:20 -0500 Started GET "/assets/spree/backend/variant_autocomplete.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:20 -0500 Started GET "/assets/spree/backend/taxon_autocomplete.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:20 -0500 Started GET "/assets/spree/backend/option_type_autocomplete.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:20 -0500 Started GET "/assets/spree/backend/user_picker.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:20 -0500 Started GET "/assets/spree/backend/product_picker.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:21 -0500 Started GET "/assets/spree/backend/taxons.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:21 -0500 Started GET "/assets/spree/backend/calculator.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:21 -0500 Started GET "/assets/spree/backend/checkouts/edit.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:21 -0500 Started GET "/assets/spree/backend/gateway.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:21 -0500 Started GET "/assets/spree/backend/general_settings.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:21 -0500 Started GET "/assets/spree/backend/images/index.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:21 -0500 Started GET "/assets/spree/backend/images/new.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:21 -0500 Started GET "/assets/spree/backend/line_items.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:21 -0500 Started GET "/assets/spree/backend/line_items_on_order_edit.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:22 -0500 Started GET "/assets/spree/backend/nested-attribute.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:22 -0500 Started GET "/assets/spree/backend/orders/edit.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:22 -0500 Started GET "/assets/spree/backend/orders/edit_form.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:22 -0500 Started GET "/assets/spree/backend/payments/edit.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:22 -0500 Started GET "/assets/jquery.payment.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:22 -0500 Started GET "/assets/spree/backend/payments/new.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:22 -0500 Started GET "/assets/spree/backend/progress.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:22 -0500 Started GET "/assets/spree/backend/promotions.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:22 -0500 Started GET "/assets/spree/backend/returns/expedited_exchanges_warning.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:23 -0500 Started GET "/assets/spree/backend/returns/return_item_selection.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:23 -0500 Started GET "/assets/spree/backend/select_payments.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:23 -0500 Started GET "/assets/spree/backend/shipments.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:23 -0500 Started GET "/assets/spree/backend/states.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:23 -0500 Started GET "/assets/spree/backend/stock_management.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:23 -0500 Started GET "/assets/spree/backend/stock_movement.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:23 -0500 Started GET "/assets/spree/backend/stock_transfer.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:23 -0500 Started GET "/assets/spree/backend/taxon_tree_menu.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:24 -0500 Started GET "/assets/spree/backend/taxonomy.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:24 -0500 Started GET "/assets/spree/backend/underscore-min.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:24 -0500 Started GET "/assets/spree/backend/variant_management.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:24 -0500 Started GET "/assets/spree/backend/zone.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:24 -0500 Started GET "/assets/spree/frontend/backend.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:24 -0500 Started GET "/assets/spree/backend.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:24 -0500 Started GET "/assets/spree/backend/all.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:24 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:25 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-13 18:03:25 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-13 18:03:25 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:25 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:25 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:25 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:26 -0500 Started GET "/assets/jquery-ui/ui-bg_flat_75_ffffff_40x100.png" for 127.0.0.1 at 2015-02-13 18:03:26 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:26 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:26 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:26 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:26 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:26 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:26 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:27 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:27 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:27 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:27 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:27 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:27 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:27 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:27 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:27 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:28 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:28 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:28 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:28 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:28 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:28 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:28 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:28 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:29 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:29 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:29 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:29 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:29 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:29 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:29 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:29 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:29 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:29 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:29 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:30 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:30 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:30 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:30 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:30 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:30 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:30 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:30 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:30 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:30 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:31 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:31 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:31 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:31 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:31 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:31 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:31 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:31 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:31 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-13 18:03:32 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-13 18:03:33 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-13 18:03:33 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (0.9ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (312.1ms) Completed 200 OK in 388ms (Views: 334.4ms | ActiveRecord: 14.8ms) Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-13 18:03:33 -0500 Started GET "/api/products?page=1&per_page=12" for 127.0.0.1 at 2015-02-13 18:03:33 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12"} Spree::User Load (1.1ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.8ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.4ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/show_products_without_price' LIMIT 1  (1.3ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-13 23:03:34.092581') AND ("spree_products".available_on <= '2015-02-13 23:03:34.094773') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0) subquery_for_count  (2.5ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-13 23:03:34.092581') AND ("spree_products".available_on <= '2015-02-13 23:03:34.094773') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (2.7ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-13 23:03:34.092581') AND ("spree_products".available_on <= '2015-02-13 23:03:34.094773') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (1.0ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::OptionType Load (1.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (2.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Taxon Load (1.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (2.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Image Load (3.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.6ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Price Load (1.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::ProductProperty Load (3.7ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY spree_product_properties.position Spree::Property Load (1.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (2.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_variants".position ASC Spree::Image Load (2.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (1.0ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (1.0ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (1.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (1.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (1.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (1.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.9ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (1.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (1.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.9ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (1.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.9ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (1.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]]  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (1.5ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.8ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.5ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.8ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]]  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 9]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 9]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 9]]  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]]  (0.9ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 11]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 11]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 11]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 12]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 12]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 12]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (11065.0ms) Completed 200 OK in 11167ms (Views: 11019.5ms | ActiveRecord: 99.3ms) Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-13 18:03:45 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (6.9ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (5.1ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (36.0ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (818.9ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (5.6ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (3502.0ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-13 18:03:49 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-13 18:03:49 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-13 18:03:49 -0500 Started GET "/" for 127.0.0.1 at 2015-02-14 22:25:03 -0500 Processing by Sprangular::HomeController#index as HTML Spree::User Load (15.1ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.1ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 15]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 16]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.4ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 9]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.9ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.8ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.8ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (8542.0ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 9]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (7110.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (16665.8ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (389.0ms) Spree::Tracker Load (0.6ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (4.6ms) Completed 200 OK in 20606ms (Views: 20460.8ms | ActiveRecord: 77.8ms) Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-14 22:25:25 -0500 Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-14 22:25:25 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:25 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:25 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:25 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:25 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:25 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:26 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:26 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:26 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:26 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:26 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:26 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:26 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:26 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:26 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:26 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:26 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:26 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:27 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:27 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:27 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:27 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:27 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:27 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:27 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:27 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:27 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:27 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:27 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:27 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:27 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:28 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:28 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:28 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:28 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:28 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:28 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:28 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:28 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:28 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:28 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:28 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:28 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:28 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:28 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:28 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:29 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:29 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:29 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:29 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:29 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:29 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:29 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:29 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:29 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:29 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:29 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:29 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:29 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:29 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:30 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:30 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:30 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:30 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:30 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:30 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:30 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:30 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:30 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:30 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:30 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:30 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:30 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:30 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:31 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:31 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:31 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:31 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:31 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:31 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:31 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:31 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:31 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:31 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:31 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:31 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:31 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:31 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:32 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:32 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:32 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:32 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:32 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:32 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:32 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:32 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:32 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:32 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:33 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:33 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:33 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:33 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:33 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:33 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-14 22:25:33 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-14 22:25:34 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-14 22:25:34 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (0.5ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.9ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (256.6ms) Completed 200 OK in 338ms (Views: 298.5ms | ActiveRecord: 10.9ms) Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-14 22:25:34 -0500 Started GET "/api/products?page=1&per_page=12" for 127.0.0.1 at 2015-02-14 22:25:34 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12"} Spree::User Load (0.5ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.8ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.7ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 03:25:35.114378') AND ("spree_products".available_on <= '2015-02-15 03:25:35.116148') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0) subquery_for_count  (0.7ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 03:25:35.114378') AND ("spree_products".available_on <= '2015-02-15 03:25:35.116148') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (1.8ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 03:25:35.114378') AND ("spree_products".available_on <= '2015-02-15 03:25:35.116148') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::OptionType Load (0.7ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.8ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Image Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.4ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Price Load (1.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::ProductProperty Load (1.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY spree_product_properties.position Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_variants".position ASC Spree::Image Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.5ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.6ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 9]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 9]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 9]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 11]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 11]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 11]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 12]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 12]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 12]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (6290.7ms) Completed 200 OK in 6354ms (Views: 6273.9ms | ActiveRecord: 50.6ms) Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-14 22:25:41 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.7ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (3.5ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (21.9ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (311.9ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.7ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1936.9ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-14 22:25:43 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-14 22:25:43 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-14 22:25:43 -0500 Started PUT "/api/checkouts/R079133342/quick_update" for 127.0.0.1 at 2015-02-14 22:26:30 -0500 Processing by Spree::Api::CheckoutsController#quick_update as JSON Parameters: {"order"=>{"use_billing"=>"true", "coupon_code"=>"", "ship_address_attributes"=>{"firstname"=>"Joshua", "lastname"=>"Nussbaum", "address1"=>"3447 Saint Dominique", "address2"=>"", "city"=>"Montreal", "phone"=>"5145910281", "zipcode"=>"H2X 2X5", "state_id"=>"434", "country_id"=>"38"}, "bill_address_attributes"=>{"firstname"=>"Joshua", "lastname"=>"Nussbaum", "address1"=>"3447 Saint Dominique", "address2"=>"", "city"=>"Montreal", "phone"=>"5145910281", "zipcode"=>"H2X 2X5", "state_id"=>"434", "country_id"=>"38"}, "payments_attributes"=>[{"payment_method_id"=>"1"}], "shipments_attributes"=>[{"id"=>"9", "selected_shipping_rate_id"=>"34"}]}, "id"=>"R079133342"} Spree::User Load (1.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Order Load (3.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]]  (0.4ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Order Load (1.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1 Spree::LineItem Load (0.6ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]]  (1.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::ShippingRate Load (0.5ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 9], ["id", 34]]  (0.2ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (5.9ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "cart"], ["updated_at", "2015-02-15 03:26:30.772031"]]  (21.3ms) commit transaction  (0.2ms) begin transaction SQL (2.5ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 9]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 9], ["id", 34]] SQL (0.2ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 34 [["selected", "t"], ["updated_at", "2015-02-15 03:26:30.831216"]] SQL (0.7ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 03:26:30.835502' WHERE "spree_orders"."id" = 6 Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 15]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 16]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/address_requires_state' LIMIT 1 Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (3.7ms) INSERT INTO "spree_addresses" ("address1", "address2", "city", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "3447 Saint Dominique"], ["address2", ""], ["city", "Montreal"], ["country_id", 38], ["created_at", "2015-02-15 03:26:30.985638"], ["firstname", "Joshua"], ["lastname", "Nussbaum"], ["phone", "5145910281"], ["state_id", 434], ["updated_at", "2015-02-15 03:26:30.985638"], ["zipcode", "H2X 2X5"]] SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "city", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "3447 Saint Dominique"], ["address2", ""], ["city", "Montreal"], ["country_id", 38], ["created_at", "2015-02-15 03:26:31.005162"], ["firstname", "Joshua"], ["lastname", "Nussbaum"], ["phone", "5145910281"], ["state_id", 434], ["updated_at", "2015-02-15 03:26:31.005162"], ["zipcode", "H2X 2X5"]] SQL (1.9ms) UPDATE "spree_orders" SET "bill_address_id" = ?, "ship_address_id" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["bill_address_id", 17], ["ship_address_id", 18], ["updated_at", "2015-02-15 03:26:31.009319"]]  (19.0ms) commit transaction Spree::ShippingRate Load (0.5ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]] SQL (20.4ms) UPDATE "spree_shipments" SET "cost" = 5.0, "adjustment_total" = 0, "updated_at" = '2015-02-15 03:26:31.045088' WHERE "spree_shipments"."id" = 9  (0.4ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (15.0ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 115.94, "item_count" = 6, "adjustment_total" = 5.8, "included_tax_total" = 0.0, "additional_tax_total" = 5.8, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 126.74, "updated_at" = '2015-02-15 03:26:31.076522' WHERE "spree_orders"."id" = 6 Spree::User Load (0.4ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Spree::Order Exists (0.4ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.7ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "address"], ["updated_at", "2015-02-15 03:26:31.112412"]]  (20.1ms) commit transaction  (0.1ms) begin transaction SQL (2.0ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 03:26:31.161890"], ["name", "order"], ["next_state", "address"], ["previous_state", "cart"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-15 03:26:31.161890"], ["user_id", 1]]  (30.3ms) commit transaction  (0.1ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.1ms) commit transaction Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/tax_using_ship_address' LIMIT 1 SQL (1.8ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 38) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 434)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::TaxRate Load (0.7ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.3ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.7ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.4ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::LineItem' AND "spree_adjustments"."adjustable_id" IN (18, 19, 20, 21) AND "spree_adjustments"."source_type" = 'Spree::TaxRate'  (0.2ms) begin transaction SQL (6.4ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 61]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] SQL (0.6ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 03:26:31.342240' WHERE "spree_line_items"."id" = 18 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 03:26:31.346652' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] SQL (0.3ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 03:26:31.364612' WHERE "spree_line_items"."id" = 18  (69.2ms) commit transaction  (0.1ms) begin transaction SQL (2.8ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 62]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] SQL (0.5ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 03:26:31.443100' WHERE "spree_line_items"."id" = 19 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 03:26:31.446920' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] SQL (0.3ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 03:26:31.456527' WHERE "spree_line_items"."id" = 19  (205.3ms) commit transaction  (0.1ms) begin transaction SQL (3.2ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 63]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] SQL (0.5ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 03:26:31.672770' WHERE "spree_line_items"."id" = 20 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 03:26:31.676941' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] SQL (0.3ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 03:26:31.686472' WHERE "spree_line_items"."id" = 20  (105.5ms) commit transaction  (0.1ms) begin transaction SQL (2.1ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 64]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] SQL (0.5ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 03:26:31.800410' WHERE "spree_line_items"."id" = 21 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.7ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 03:26:31.804711' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] SQL (0.3ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 03:26:31.814173' WHERE "spree_line_items"."id" = 21  (34.1ms) commit transaction SQL (14.1ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 39.98 WHERE "spree_line_items"."id" = 18 Spree::Calculator Load (0.7ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]]  (0.1ms) begin transaction Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (4.7ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"], ["amount", 2.0], ["created_at", "2015-02-15 03:26:31.916549"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 03:26:31.916549"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.3ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.3ms) UPDATE "spree_adjustments" SET "amount" = 2.0, "updated_at" = '2015-02-15 03:26:31.945476' WHERE "spree_adjustments"."id" = 65 SQL (0.8ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.0, "adjustment_total" = 2.0, "updated_at" = '2015-02-15 03:26:31.952901' WHERE "spree_line_items"."id" = 18 SQL (0.4ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 03:26:31.956599' WHERE "spree_line_items"."id" = 18 SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 03:26:31.959427' WHERE "spree_orders"."id" = 6  (15.5ms) commit transaction SQL (13.8ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 19.99 WHERE "spree_line_items"."id" = 19  (0.1ms) begin transaction Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (3.2ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"], ["amount", 1.0], ["created_at", "2015-02-15 03:26:31.999164"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 03:26:31.999164"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.2ms) UPDATE "spree_adjustments" SET "amount" = 1.0, "updated_at" = '2015-02-15 03:26:32.023743' WHERE "spree_adjustments"."id" = 66 SQL (0.5ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.0, "adjustment_total" = 1.0, "updated_at" = '2015-02-15 03:26:32.025522' WHERE "spree_line_items"."id" = 19 SQL (0.3ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 03:26:32.027576' WHERE "spree_line_items"."id" = 19 SQL (0.7ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 03:26:32.029368' WHERE "spree_orders"."id" = 6  (16.2ms) commit transaction SQL (13.8ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 39.98 WHERE "spree_line_items"."id" = 20  (0.2ms) begin transaction Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (3.2ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"], ["amount", 2.0], ["created_at", "2015-02-15 03:26:32.070612"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 03:26:32.070612"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.2ms) UPDATE "spree_adjustments" SET "amount" = 2.0, "updated_at" = '2015-02-15 03:26:32.133599' WHERE "spree_adjustments"."id" = 67 SQL (0.8ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.0, "adjustment_total" = 2.0, "updated_at" = '2015-02-15 03:26:32.135144' WHERE "spree_line_items"."id" = 20 SQL (0.4ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 03:26:32.137844' WHERE "spree_line_items"."id" = 20 SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 03:26:32.140195' WHERE "spree_orders"."id" = 6  (18.1ms) commit transaction SQL (14.9ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 15.99 WHERE "spree_line_items"."id" = 21  (0.1ms) begin transaction Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (2.7ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"], ["amount", 0.8], ["created_at", "2015-02-15 03:26:32.183309"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 03:26:32.183309"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.3ms) UPDATE "spree_adjustments" SET "amount" = 0.8, "updated_at" = '2015-02-15 03:26:32.205445' WHERE "spree_adjustments"."id" = 68 SQL (0.6ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0.8, "adjustment_total" = 0.8, "updated_at" = '2015-02-15 03:26:32.207355' WHERE "spree_line_items"."id" = 21 SQL (0.3ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 03:26:32.209890' WHERE "spree_line_items"."id" = 21 SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 03:26:32.211695' WHERE "spree_orders"."id" = 6  (15.1ms) commit transaction Spree::TaxRate Load (0.4ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.3ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 9]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]]  (0.1ms) begin transaction Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]]  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]]  (0.1ms) begin transaction CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]]  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction SQL (0.3ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."adjustable_type" = 'Spree::Shipment' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 9], ["adjustable_type", "Spree::Shipment"]] SQL (2.2ms) DELETE FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 9]] SQL (2.9ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? [["shipment_id", 9]] SQL (1.9ms) DELETE FROM "spree_shipments" WHERE "spree_shipments"."id" = ? [["id", 9]] SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 03:26:32.295924' WHERE "spree_orders"."id" = 6  (15.1ms) commit transaction Spree::StockLocation Load (0.5ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."active" = 't' Spree::StockItem Exists (0.6ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" IN (17, 17, 22, 7, 7, 1) LIMIT 1 [["stock_location_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 17 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 17 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 22 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 22 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 7 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 7 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 1 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 1 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingCategory Load (0.4ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.5ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.4ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 2], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] CACHE (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 3], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] CACHE (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 4], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 4]] Spree::ZoneMember Load (0.5ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 5], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 5]] CACHE (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.1ms) begin transaction  (0.4ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H46765622715%') SQL (3.1ms) INSERT INTO "spree_shipments" ("address_id", "created_at", "number", "order_id", "state", "stock_location_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address_id", 18], ["created_at", "2015-02-15 03:26:32.541962"], ["number", "H46765622715"], ["order_id", 6], ["state", "pending"], ["stock_location_id", 1], ["updated_at", "2015-02-15 03:26:32.541962"]] SQL (1.5ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 5.0], ["created_at", "2015-02-15 03:26:32.548441"], ["selected", "t"], ["shipment_id", 10], ["shipping_method_id", 1], ["updated_at", "2015-02-15 03:26:32.548441"]] SQL (0.3ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost", 10.0], ["created_at", "2015-02-15 03:26:32.552539"], ["shipment_id", 10], ["shipping_method_id", 2], ["updated_at", "2015-02-15 03:26:32.552539"]] SQL (1.0ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost", 15.0], ["created_at", "2015-02-15 03:26:32.555656"], ["shipment_id", 10], ["shipping_method_id", 3], ["updated_at", "2015-02-15 03:26:32.555656"]] SQL (2.5ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 03:26:32.559706"], ["line_item_id", 18], ["order_id", 6], ["shipment_id", 10], ["state", "on_hand"], ["updated_at", "2015-02-15 03:26:32.559706"], ["variant_id", 17]] SQL (0.3ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-15 03:26:32.565545' WHERE "spree_shipments"."id" = 10 SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 03:26:32.567439' WHERE "spree_orders"."id" = 6 SQL (0.2ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 03:26:32.570776"], ["line_item_id", 18], ["order_id", 6], ["shipment_id", 10], ["state", "on_hand"], ["updated_at", "2015-02-15 03:26:32.570776"], ["variant_id", 17]] SQL (0.2ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-15 03:26:32.573691' WHERE "spree_shipments"."id" = 10 SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 03:26:32.575421' WHERE "spree_orders"."id" = 6 SQL (0.2ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 03:26:32.578027"], ["line_item_id", 19], ["order_id", 6], ["shipment_id", 10], ["state", "on_hand"], ["updated_at", "2015-02-15 03:26:32.578027"], ["variant_id", 22]] SQL (0.2ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-15 03:26:32.580183' WHERE "spree_shipments"."id" = 10 SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 03:26:32.581633' WHERE "spree_orders"."id" = 6 SQL (0.1ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 03:26:32.584048"], ["line_item_id", 20], ["order_id", 6], ["shipment_id", 10], ["state", "on_hand"], ["updated_at", "2015-02-15 03:26:32.584048"], ["variant_id", 7]] SQL (0.3ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-15 03:26:32.586029' WHERE "spree_shipments"."id" = 10 SQL (0.3ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 03:26:32.588156' WHERE "spree_orders"."id" = 6 SQL (0.2ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 03:26:32.591829"], ["line_item_id", 20], ["order_id", 6], ["shipment_id", 10], ["state", "on_hand"], ["updated_at", "2015-02-15 03:26:32.591829"], ["variant_id", 7]] SQL (0.3ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-15 03:26:32.595170' WHERE "spree_shipments"."id" = 10 SQL (0.3ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 03:26:32.597578' WHERE "spree_orders"."id" = 6 SQL (0.3ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 03:26:32.601215"], ["line_item_id", 21], ["order_id", 6], ["shipment_id", 10], ["state", "on_hand"], ["updated_at", "2015-02-15 03:26:32.601215"], ["variant_id", 1]] SQL (0.4ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-15 03:26:32.604979' WHERE "spree_shipments"."id" = 10 SQL (0.4ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 03:26:32.607770' WHERE "spree_orders"."id" = 6 SQL (0.4ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 03:26:32.610802' WHERE "spree_orders"."id" = 6  (24.1ms) commit transaction Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 10]] CACHE (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 10]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 10], ["adjustable_type", "Spree::Shipment"]] SQL (13.9ms) UPDATE "spree_shipments" SET "cost" = 5.0, "adjustment_total" = 0, "updated_at" = '2015-02-15 03:26:32.649073' WHERE "spree_shipments"."id" = 10  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (14.2ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 115.94, "item_count" = 6, "adjustment_total" = 5.8, "included_tax_total" = 0.0, "additional_tax_total" = 5.8, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 126.74, "updated_at" = '2015-02-15 03:26:32.667107' WHERE "spree_orders"."id" = 6  (0.2ms) begin transaction Spree::Order Exists (0.4ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (1.0ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "delivery"], ["updated_at", "2015-02-15 03:26:32.697252"]]  (13.2ms) commit transaction  (0.1ms) begin transaction SQL (1.8ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 03:26:32.718975"], ["name", "order"], ["next_state", "delivery"], ["previous_state", "address"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-15 03:26:32.718975"], ["user_id", 1]]  (122.5ms) commit transaction  (0.1ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.1ms) commit transaction  (0.3ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.3ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order')) Spree::LineItem Load (0.7ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (18, 19, 20, 21) Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (13.9ms) UPDATE "spree_adjustments" SET "amount" = 2.0, "updated_at" = '2015-02-15 03:26:32.894493' WHERE "spree_adjustments"."id" = 65 SQL (13.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.0, "adjustment_total" = 2.0, "updated_at" = '2015-02-15 03:26:32.910019' WHERE "spree_line_items"."id" = 18 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (19.9ms) UPDATE "spree_adjustments" SET "amount" = 1.0, "updated_at" = '2015-02-15 03:26:32.942160' WHERE "spree_adjustments"."id" = 66 SQL (18.9ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.0, "adjustment_total" = 1.0, "updated_at" = '2015-02-15 03:26:32.963702' WHERE "spree_line_items"."id" = 19 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (16.6ms) UPDATE "spree_adjustments" SET "amount" = 2.0, "updated_at" = '2015-02-15 03:26:33.001624' WHERE "spree_adjustments"."id" = 67 SQL (14.3ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.0, "adjustment_total" = 2.0, "updated_at" = '2015-02-15 03:26:33.019688' WHERE "spree_line_items"."id" = 20 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (19.6ms) UPDATE "spree_adjustments" SET "amount" = 0.8, "updated_at" = '2015-02-15 03:26:33.058314' WHERE "spree_adjustments"."id" = 68 SQL (19.3ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0.8, "adjustment_total" = 0.8, "updated_at" = '2015-02-15 03:26:33.079458' WHERE "spree_line_items"."id" = 21  (0.4ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.3ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (20.4ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 115.94, "item_count" = 6, "adjustment_total" = 5.8, "included_tax_total" = 0.0, "additional_tax_total" = 5.8, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 126.74, "updated_at" = '2015-02-15 03:26:33.119930' WHERE "spree_orders"."id" = 6  (0.1ms) begin transaction SQL (1.3ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 10]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 10], ["id", 37]] SQL (0.2ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 37 [["selected", "t"], ["updated_at", "2015-02-15 03:26:33.150024"]] SQL (0.7ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 03:26:33.156201' WHERE "spree_orders"."id" = 6 SQL (0.4ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 03:26:33.161410' WHERE "spree_orders"."id" = 6  (16.8ms) commit transaction Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 10]] CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 10]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 10], ["adjustable_type", "Spree::Shipment"]] SQL (19.8ms) UPDATE "spree_shipments" SET "cost" = 5.0, "adjustment_total" = 0, "updated_at" = '2015-02-15 03:26:33.187430' WHERE "spree_shipments"."id" = 10  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (17.7ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 115.94, "item_count" = 6, "adjustment_total" = 5.8, "included_tax_total" = 0.0, "additional_tax_total" = 5.8, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 126.74, "updated_at" = '2015-02-15 03:26:33.211128' WHERE "spree_orders"."id" = 6 Spree::TaxRate Load (0.4ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.5ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::LineItem' AND "spree_adjustments"."adjustable_id" IN (18, 19, 20, 21) AND "spree_adjustments"."source_type" = 'Spree::TaxRate'  (0.1ms) begin transaction SQL (2.5ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 65]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] SQL (0.5ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 03:26:33.256991' WHERE "spree_line_items"."id" = 18 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 03:26:33.261288' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] SQL (0.3ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 03:26:33.280243' WHERE "spree_line_items"."id" = 18  (33.3ms) commit transaction  (0.1ms) begin transaction SQL (4.3ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 66]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] SQL (0.6ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 03:26:33.324626' WHERE "spree_line_items"."id" = 19 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 03:26:33.329978' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] SQL (0.3ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 03:26:33.340121' WHERE "spree_line_items"."id" = 19  (186.4ms) commit transaction  (0.1ms) begin transaction SQL (3.0ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 67]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] SQL (0.7ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 03:26:33.535681' WHERE "spree_line_items"."id" = 20 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 03:26:33.541313' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] SQL (0.3ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 03:26:33.550426' WHERE "spree_line_items"."id" = 20  (17.5ms) commit transaction  (0.2ms) begin transaction SQL (2.2ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 68]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] SQL (0.5ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 03:26:33.576931' WHERE "spree_line_items"."id" = 21 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 03:26:33.580725' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] SQL (0.4ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 03:26:33.590543' WHERE "spree_line_items"."id" = 21  (19.5ms) commit transaction SQL (172.0ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 39.98 WHERE "spree_line_items"."id" = 18 Spree::Calculator Load (0.4ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]]  (0.2ms) begin transaction Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (2.8ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"], ["amount", 2.0], ["created_at", "2015-02-15 03:26:33.797844"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 03:26:33.797844"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.2ms) UPDATE "spree_adjustments" SET "amount" = 2.0, "updated_at" = '2015-02-15 03:26:33.822961' WHERE "spree_adjustments"."id" = 69 SQL (0.6ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.0, "adjustment_total" = 2.0, "updated_at" = '2015-02-15 03:26:33.824745' WHERE "spree_line_items"."id" = 18 SQL (0.3ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 03:26:33.826890' WHERE "spree_line_items"."id" = 18 SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 03:26:33.828582' WHERE "spree_orders"."id" = 6  (15.2ms) commit transaction SQL (16.3ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 19.99 WHERE "spree_line_items"."id" = 19  (0.1ms) begin transaction Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (4.0ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"], ["amount", 1.0], ["created_at", "2015-02-15 03:26:33.870457"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 03:26:33.870457"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.2ms) UPDATE "spree_adjustments" SET "amount" = 1.0, "updated_at" = '2015-02-15 03:26:33.894719' WHERE "spree_adjustments"."id" = 70 SQL (0.5ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.0, "adjustment_total" = 1.0, "updated_at" = '2015-02-15 03:26:33.896393' WHERE "spree_line_items"."id" = 19 SQL (0.3ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 03:26:33.898216' WHERE "spree_line_items"."id" = 19 SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 03:26:33.899832' WHERE "spree_orders"."id" = 6  (15.4ms) commit transaction SQL (20.1ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 39.98 WHERE "spree_line_items"."id" = 20  (0.1ms) begin transaction Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (2.4ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"], ["amount", 2.0], ["created_at", "2015-02-15 03:26:33.945355"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 03:26:33.945355"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.2ms) UPDATE "spree_adjustments" SET "amount" = 2.0, "updated_at" = '2015-02-15 03:26:33.966177' WHERE "spree_adjustments"."id" = 71 SQL (0.6ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.0, "adjustment_total" = 2.0, "updated_at" = '2015-02-15 03:26:33.967795' WHERE "spree_line_items"."id" = 20 SQL (0.4ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 03:26:33.969987' WHERE "spree_line_items"."id" = 20 SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 03:26:33.972337' WHERE "spree_orders"."id" = 6  (32.5ms) commit transaction SQL (28.8ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 15.99 WHERE "spree_line_items"."id" = 21  (0.2ms) begin transaction Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (2.4ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"], ["amount", 0.8], ["created_at", "2015-02-15 03:26:34.044291"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 03:26:34.044291"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.3ms) UPDATE "spree_adjustments" SET "amount" = 0.8, "updated_at" = '2015-02-15 03:26:34.065353' WHERE "spree_adjustments"."id" = 72 SQL (0.9ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0.8, "adjustment_total" = 0.8, "updated_at" = '2015-02-15 03:26:34.067393' WHERE "spree_line_items"."id" = 21 SQL (0.4ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 03:26:34.070791' WHERE "spree_line_items"."id" = 21 SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 03:26:34.073079' WHERE "spree_orders"."id" = 6  (39.2ms) commit transaction Spree::TaxRate Load (0.4ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.5ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 10]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 10], ["adjustable_type", "Spree::Shipment"]]  (3.0ms) SELECT "spree_promotion_actions"."promotion_id" FROM "spree_promotion_actions" WHERE "spree_promotion_actions"."type" IN ('Spree::Promotion::Actions::FreeShipping') AND "spree_promotion_actions"."deleted_at" IS NULL Spree::Promotion Load (0.9ms) SELECT "spree_promotions".* FROM "spree_promotions" WHERE (starts_at IS NULL OR starts_at < '2015-02-15 03:26:34.141298') AND (expires_at IS NULL OR expires_at > '2015-02-15 03:26:34.141807') AND 1=0 AND "spree_promotions"."code" IS NULL AND "spree_promotions"."path" IS NULL Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 10]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 10], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 10], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 10], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 10], ["adjustable_type", "Spree::Shipment"]] SQL (34.3ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 03:26:34.168846' WHERE "spree_shipments"."id" = 10  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (197.9ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 115.94, "item_count" = 6, "adjustment_total" = 5.8, "included_tax_total" = 0.0, "additional_tax_total" = 5.8, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 126.74, "updated_at" = '2015-02-15 03:26:34.206960' WHERE "spree_orders"."id" = 6  (0.1ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (1.1ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "payment"], ["updated_at", "2015-02-15 03:26:34.418239"]]  (14.5ms) commit transaction  (0.2ms) begin transaction SQL (1.7ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 03:26:34.440929"], ["name", "order"], ["next_state", "payment"], ["previous_state", "delivery"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-15 03:26:34.440929"], ["user_id", 1]]  (14.3ms) commit transaction  (0.1ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.2ms) commit transaction  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.2ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order')) Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (18, 19, 20, 21) Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (14.4ms) UPDATE "spree_adjustments" SET "amount" = 2.0, "updated_at" = '2015-02-15 03:26:34.504553' WHERE "spree_adjustments"."id" = 69 SQL (16.0ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.0, "adjustment_total" = 2.0, "updated_at" = '2015-02-15 03:26:34.521284' WHERE "spree_line_items"."id" = 18 Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (18.2ms) UPDATE "spree_adjustments" SET "amount" = 1.0, "updated_at" = '2015-02-15 03:26:34.557430' WHERE "spree_adjustments"."id" = 70 SQL (15.2ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.0, "adjustment_total" = 1.0, "updated_at" = '2015-02-15 03:26:34.577169' WHERE "spree_line_items"."id" = 19 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.3ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (20.1ms) UPDATE "spree_adjustments" SET "amount" = 2.0, "updated_at" = '2015-02-15 03:26:34.612281' WHERE "spree_adjustments"."id" = 71 SQL (15.3ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.0, "adjustment_total" = 2.0, "updated_at" = '2015-02-15 03:26:34.633879' WHERE "spree_line_items"."id" = 20 Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (13.7ms) UPDATE "spree_adjustments" SET "amount" = 0.8, "updated_at" = '2015-02-15 03:26:34.675095' WHERE "spree_adjustments"."id" = 72 SQL (13.4ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0.8, "adjustment_total" = 0.8, "updated_at" = '2015-02-15 03:26:34.690445' WHERE "spree_line_items"."id" = 21  (0.3ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (14.0ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 115.94, "item_count" = 6, "adjustment_total" = 5.8, "included_tax_total" = 0.0, "additional_tax_total" = 5.8, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 126.74, "updated_at" = '2015-02-15 03:26:34.724756' WHERE "spree_orders"."id" = 6  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::PaymentMethod Load (0.6ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 10]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 10]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 10]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 10]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 10]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 10]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 10]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 10]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 10], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (8616.2ms) Completed 200 OK in 13138ms (Views: 8837.6ms | ActiveRecord: 2340.2ms) Started GET "/api/cart.json" for 127.0.0.1 at 2015-02-14 22:26:43 -0500 Processing by Sprangular::CartsController#show as JSON Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 17]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 18]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.6ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 10]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 10]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 10]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 10]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 10]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 10]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 10]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.3ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 10]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 10], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (7966.8ms) Completed 200 OK in 8029ms (Views: 7946.0ms | ActiveRecord: 53.9ms) Started GET "/assets/checkout/confirm.html" for 127.0.0.1 at 2015-02-14 22:26:52 -0500 Started GET "/assets/checkout/nav.html" for 127.0.0.1 at 2015-02-14 22:26:52 -0500 Started GET "/assets/addresses/address.html" for 127.0.0.1 at 2015-02-14 22:26:52 -0500 Started GET "/assets/credit_cards/credit_card.html" for 127.0.0.1 at 2015-02-14 22:26:52 -0500 Started GET "/api/countries" for 127.0.0.1 at 2015-02-14 22:27:05 -0500 Processing by Sprangular::CountriesController#index as JSON Spree::User Load (1.1ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Country Load (5.7ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."name" ASC Spree::State Load (87.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" IN (3, 6, 62, 11, 1, 8, 5, 9, 4, 10, 7, 14, 13, 12, 16, 32, 23, 19, 18, 36, 20, 37, 25, 27, 33, 29, 30, 17, 35, 34, 31, 106, 28, 22, 21, 24, 117, 47, 38, 52, 124, 41, 214, 46, 48, 54, 39, 49, 119, 42, 40, 45, 50, 98, 51, 53, 55, 56, 44, 59, 58, 60, 61, 63, 65, 209, 88, 67, 64, 69, 72, 74, 71, 70, 75, 80, 175, 215, 76, 85, 79, 57, 82, 83, 89, 84, 78, 87, 92, 91, 81, 86, 93, 94, 99, 96, 235, 97, 95, 100, 109, 105, 101, 108, 107, 102, 104, 103, 110, 112, 114, 111, 113, 125, 115, 118, 121, 122, 123, 116, 126, 135, 127, 132, 131, 136, 129, 133, 134, 148, 144, 142, 156, 158, 155, 145, 153, 143, 150, 151, 154, 245, 157, 73, 139, 138, 147, 140, 152, 137, 159, 146, 160, 169, 168, 166, 161, 171, 165, 162, 164, 170, 163, 149, 167, 172, 178, 184, 182, 173, 176, 185, 174, 177, 181, 179, 183, 186, 188, 190, 191, 187, 26, 198, 120, 128, 141, 180, 236, 243, 203, 208, 192, 204, 189, 194, 202, 197, 210, 201, 199, 193, 205, 246, 90, 207, 68, 130, 195, 206, 200, 212, 196, 43, 211, 227, 218, 228, 217, 220, 216, 219, 223, 225, 222, 224, 221, 213, 226, 230, 229, 2, 77, 232, 231, 233, 234, 241, 237, 240, 238, 239, 242, 66, 244, 247, 248, 15) ORDER BY name ASC Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/countries/index.rabl (15059.5ms) Completed 200 OK in 15129ms (Views: 15002.5ms | ActiveRecord: 97.0ms) Started GET "/api/cart.json" for 127.0.0.1 at 2015-02-14 22:27:20 -0500 Processing by Sprangular::CartsController#show as JSON Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.1ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 17]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 18]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 10]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 10]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 10]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 10]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 10]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 10]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 10]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 10]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 10], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.9ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (2.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (8506.2ms) Completed 200 OK in 8548ms (Views: 8471.2ms | ActiveRecord: 58.1ms) Started GET "/assets/checkout/index.html" for 127.0.0.1 at 2015-02-14 22:27:29 -0500 Started GET "/assets/addresses/selection.html" for 127.0.0.1 at 2015-02-14 22:27:30 -0500 Started GET "/assets/shipping/rates.html" for 127.0.0.1 at 2015-02-14 22:27:30 -0500 Started GET "/assets/credit_cards/selection.html" for 127.0.0.1 at 2015-02-14 22:27:30 -0500 Started GET "/assets/addresses/form.html" for 127.0.0.1 at 2015-02-14 22:27:30 -0500 Started GET "/assets/credit_cards/form.html" for 127.0.0.1 at 2015-02-14 22:27:30 -0500 Started GET "/" for 127.0.0.1 at 2015-02-14 23:28:15 -0500 Processing by Sprangular::HomeController#index as HTML Spree::User Load (0.5ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.9ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 17]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 7]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 1]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 10]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 10]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 10]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 10]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 10]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 10]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 10]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.4ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 10]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 10], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] Spree::Price Load (1.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (1.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (1.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.7ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 3]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 3], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 3]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 17]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 17], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 18], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 19], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 20], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 21]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 21], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 22]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 22], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 23], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 24]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 24], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 25]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 25], ["viewable_type", "Spree::Variant"]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 26], ["viewable_type", "Spree::Variant"]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 4]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 8]] CACHE (0.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 7]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 7], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 7]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 7]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 7]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 9]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 1]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 1]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 1], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 1]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 1]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (8143.4ms) CACHE (0.1ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 10]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 10]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 7]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (7026.6ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (16031.5ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (405.3ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.7ms) Completed 200 OK in 19735ms (Views: 19654.2ms | ActiveRecord: 62.6ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-14 23:28:35 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-14 23:28:35 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:36 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:36 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:36 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:36 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:36 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:36 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:36 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:36 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:36 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:36 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:36 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:36 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:36 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:37 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:37 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:37 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:37 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:37 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:37 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:37 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:37 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:37 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:37 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:37 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:37 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:37 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:38 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:38 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:38 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:38 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:38 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:38 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:38 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:38 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:38 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:38 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:38 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:38 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:38 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:39 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:39 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:39 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:39 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:39 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:39 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:39 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:39 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:39 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:39 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:39 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:39 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:39 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:40 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:40 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:40 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:40 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:40 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:40 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:40 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:40 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:40 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:40 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:40 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:40 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:40 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:41 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:41 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:41 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:41 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:41 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:41 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:41 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:41 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:41 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:41 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:41 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:41 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:41 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:41 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:42 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:42 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:42 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:42 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:42 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:42 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:42 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:42 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:42 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:42 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:42 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:42 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:42 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:43 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:43 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:43 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:43 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:43 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:43 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:43 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:43 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:43 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:43 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:43 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:44 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:44 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:44 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:44 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:44 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:44 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:44 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:44 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:44 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:44 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:44 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:45 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:45 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:45 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:45 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:45 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:45 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:45 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:45 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:45 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:45 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:45 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:45 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:46 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:46 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:46 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:46 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:46 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:46 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:46 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:46 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:46 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:46 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:46 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:47 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:47 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:47 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:47 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:47 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:47 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:47 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:47 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:47 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:47 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:47 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:47 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:48 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:48 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:48 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:48 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:48 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:48 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-14 23:28:48 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-14 23:28:50 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-14 23:28:50 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (209.7ms) Completed 200 OK in 263ms (Views: 222.8ms | ActiveRecord: 10.8ms) Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-14 23:28:50 -0500 Started GET "/api/products?page=1&per_page=12" for 127.0.0.1 at 2015-02-14 23:28:50 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12"} Spree::User Load (0.9ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.8ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 04:28:51.017435') AND ("spree_products".available_on <= '2015-02-15 04:28:51.018500') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0) subquery_for_count  (0.6ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 04:28:51.017435') AND ("spree_products".available_on <= '2015-02-15 04:28:51.018500') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (1.0ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 04:28:51.017435') AND ("spree_products".available_on <= '2015-02-15 04:28:51.018500') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.6ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Image Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.3ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Price Load (0.7ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::ProductProperty Load (1.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY spree_product_properties.position Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_variants".position ASC Spree::Image Load (1.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.4ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (1.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 9]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 9]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 9]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 11]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 11]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 11]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 12]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 12]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 12]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (6216.3ms) Completed 200 OK in 6271ms (Views: 6190.8ms | ActiveRecord: 50.2ms) Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-14 23:28:57 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.5ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (4.1ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (13.1ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (427.9ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.4ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1708.6ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-14 23:28:59 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-14 23:28:59 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-14 23:28:59 -0500 Started DELETE "/api/cart" for 127.0.0.1 at 2015-02-14 23:29:02 -0500 Processing by Sprangular::CartsController#destroy as JSON Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]]  (0.2ms) begin transaction Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] SQL (2.5ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 69]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 18]] SQL (0.5ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 04:29:02.376527' WHERE "spree_line_items"."id" = 18 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 04:29:02.380457' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 18], ["adjustable_type", "Spree::LineItem"]] SQL (0.3ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 04:29:02.392272' WHERE "spree_line_items"."id" = 18 Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."line_item_id" = ? [["line_item_id", 18]] SQL (2.4ms) DELETE FROM "spree_inventory_units" WHERE "spree_inventory_units"."id" = ? [["id", 9]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 7]] SQL (0.1ms) DELETE FROM "spree_inventory_units" WHERE "spree_inventory_units"."id" = ? [["id", 22]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 10]] SQL (0.5ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-15 04:29:02.408659' WHERE "spree_shipments"."id" = 10 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 04:29:02.412466' WHERE "spree_orders"."id" = 6 SQL (0.1ms) DELETE FROM "spree_inventory_units" WHERE "spree_inventory_units"."id" = ? [["id", 23]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 10]] SQL (0.3ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-15 04:29:02.417493' WHERE "spree_shipments"."id" = 10 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 04:29:02.422242' WHERE "spree_orders"."id" = 6 SQL (1.1ms) DELETE FROM "spree_line_items" WHERE "spree_line_items"."id" = ? [["id", 18]] SQL (0.3ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 04:29:02.426251' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] SQL (0.7ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 70]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 19]] SQL (0.2ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 04:29:02.434052' WHERE "spree_line_items"."id" = 19 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 04:29:02.438016' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 19], ["adjustable_type", "Spree::LineItem"]] SQL (0.2ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 04:29:02.446698' WHERE "spree_line_items"."id" = 19 Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."line_item_id" = ? [["line_item_id", 19]] SQL (0.2ms) DELETE FROM "spree_inventory_units" WHERE "spree_inventory_units"."id" = ? [["id", 24]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 10]] SQL (0.3ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-15 04:29:02.455788' WHERE "spree_shipments"."id" = 10 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 04:29:02.459840' WHERE "spree_orders"."id" = 6 SQL (0.1ms) DELETE FROM "spree_line_items" WHERE "spree_line_items"."id" = ? [["id", 19]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 04:29:02.462683' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] SQL (0.8ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 71]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 20]] SQL (0.2ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 04:29:02.471895' WHERE "spree_line_items"."id" = 20 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 04:29:02.475496' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 20], ["adjustable_type", "Spree::LineItem"]] SQL (0.4ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 04:29:02.485228' WHERE "spree_line_items"."id" = 20 Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."line_item_id" = ? [["line_item_id", 20]] SQL (0.1ms) DELETE FROM "spree_inventory_units" WHERE "spree_inventory_units"."id" = ? [["id", 25]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 10]] SQL (0.2ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-15 04:29:02.494636' WHERE "spree_shipments"."id" = 10 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.3ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 04:29:02.498049' WHERE "spree_orders"."id" = 6 SQL (0.2ms) DELETE FROM "spree_inventory_units" WHERE "spree_inventory_units"."id" = ? [["id", 26]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 10]] SQL (0.2ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-15 04:29:02.504600' WHERE "spree_shipments"."id" = 10 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 04:29:02.508128' WHERE "spree_orders"."id" = 6 SQL (0.1ms) DELETE FROM "spree_line_items" WHERE "spree_line_items"."id" = ? [["id", 20]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 04:29:02.510761' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] SQL (0.1ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 72]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 21]] SQL (0.4ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 04:29:02.518117' WHERE "spree_line_items"."id" = 21 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.3ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 04:29:02.524359' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 21], ["adjustable_type", "Spree::LineItem"]] SQL (0.2ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 04:29:02.533755' WHERE "spree_line_items"."id" = 21 Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."line_item_id" = ? [["line_item_id", 21]] SQL (0.1ms) DELETE FROM "spree_inventory_units" WHERE "spree_inventory_units"."id" = ? [["id", 27]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 10]] SQL (0.2ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-15 04:29:02.541108' WHERE "spree_shipments"."id" = 10 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 04:29:02.544595' WHERE "spree_orders"."id" = 6 SQL (0.1ms) DELETE FROM "spree_line_items" WHERE "spree_line_items"."id" = ? [["id", 21]] SQL (0.3ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 04:29:02.547251' WHERE "spree_orders"."id" = 6  (28.1ms) commit transaction  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) begin transaction SQL (0.2ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 10], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) DELETE FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 10]] SQL (2.8ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? [["shipment_id", 10]] SQL (2.7ms) DELETE FROM "spree_shipments" WHERE "spree_shipments"."id" = ? [["id", 10]] SQL (0.8ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 04:29:02.601033' WHERE "spree_orders"."id" = 6  (17.4ms) commit transaction  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order'))  (0.2ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.2ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (14.8ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 0.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 0.0, "updated_at" = '2015-02-15 04:29:02.650810' WHERE "spree_orders"."id" = 6  (0.2ms) begin transaction Spree::Order Exists (0.4ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.9ms) UPDATE "spree_orders" SET "additional_tax_total" = ?, "adjustment_total" = ?, "item_count" = ?, "item_total" = ?, "shipment_total" = ?, "state" = ?, "total" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["additional_tax_total", 0.0], ["adjustment_total", 0.0], ["item_count", 0], ["item_total", 0.0], ["shipment_total", 0.0], ["state", "cart"], ["total", 0.0], ["updated_at", "2015-02-15 04:29:02.676371"]]  (17.2ms) commit transaction  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 17]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 18]] Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (341.3ms) Completed 200 OK in 733ms (Views: 361.5ms | ActiveRecord: 117.6ms) Started POST "/api/cart/add_variant" for 127.0.0.1 at 2015-02-14 23:29:06 -0500 Processing by Sprangular::CartsController#add_variant as JSON Parameters: {"variant_id"=>"2", "quantity"=>"1"} Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" = ? [["variant_id", 2]]  (0.1ms) begin transaction Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (2.1ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 21.0], ["created_at", "2015-02-15 04:29:06.407050"], ["currency", "USD"], ["order_id", 6], ["price", 22.99], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2015-02-15 04:29:06.407050"], ["variant_id", 2]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 18]] SQL (0.6ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 38) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 434)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::TaxRate Load (0.3ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.3ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::LineItem' AND "spree_adjustments"."adjustable_id" IN (22) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' SQL (0.3ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 22.99 WHERE "spree_line_items"."id" = 22 Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (2.1ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"], ["amount", 1.15], ["created_at", "2015-02-15 04:29:06.451229"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 04:29:06.451229"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.3ms) UPDATE "spree_adjustments" SET "amount" = 1.15, "updated_at" = '2015-02-15 04:29:06.474549' WHERE "spree_adjustments"."id" = 73 SQL (0.2ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.15, "adjustment_total" = 1.15, "updated_at" = '2015-02-15 04:29:06.476767' WHERE "spree_line_items"."id" = 22 SQL (0.2ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 04:29:06.478802' WHERE "spree_line_items"."id" = 22 SQL (0.7ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 04:29:06.480858' WHERE "spree_orders"."id" = 6 SQL (0.4ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 04:29:06.484130' WHERE "spree_orders"."id" = 6 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::TaxRate Load (0.6ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (1.4ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.4ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (1.6ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (1.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::LineItem' AND "spree_adjustments"."adjustable_id" IN (22) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' SQL (0.1ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 73]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] SQL (0.4ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 04:29:06.546177' WHERE "spree_line_items"."id" = 22 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.3ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 04:29:06.552123' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] SQL (0.4ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 04:29:06.564471' WHERE "spree_line_items"."id" = 22 SQL (0.3ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 22.99 WHERE "spree_line_items"."id" = 22 Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.3ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"], ["amount", 1.15], ["created_at", "2015-02-15 04:29:06.584761"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 04:29:06.584761"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.2ms) UPDATE "spree_adjustments" SET "amount" = 1.15, "updated_at" = '2015-02-15 04:29:06.609907' WHERE "spree_adjustments"."id" = 74 SQL (0.2ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.15, "adjustment_total" = 1.15, "updated_at" = '2015-02-15 04:29:06.611703' WHERE "spree_line_items"."id" = 22 SQL (0.2ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 04:29:06.613352' WHERE "spree_line_items"."id" = 22 SQL (0.4ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 04:29:06.615128' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.2ms) UPDATE "spree_adjustments" SET "amount" = 1.15, "updated_at" = '2015-02-15 04:29:06.637491' WHERE "spree_adjustments"."id" = 74 SQL (0.2ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.15, "adjustment_total" = 1.15, "updated_at" = '2015-02-15 04:29:06.639396' WHERE "spree_line_items"."id" = 22  (23.0ms) commit transaction  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.2ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order')) Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (22) Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (104.0ms) UPDATE "spree_adjustments" SET "amount" = 1.15, "updated_at" = '2015-02-15 04:29:06.700541' WHERE "spree_adjustments"."id" = 74 SQL (33.9ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.15, "adjustment_total" = 1.15, "updated_at" = '2015-02-15 04:29:06.806201' WHERE "spree_line_items"."id" = 22  (0.3ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.4ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.2ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (205.3ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 22.99, "item_count" = 1, "adjustment_total" = 1.15, "included_tax_total" = 0.0, "additional_tax_total" = 1.15, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 24.14, "updated_at" = '2015-02-15 04:29:06.877900' WHERE "spree_orders"."id" = 6 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::Shipment Exists (0.5ms) SELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? LIMIT 1 [["order_id", 6]] Spree::Promotion Load (1.9ms) SELECT DISTINCT "spree_promotions".* FROM "spree_promotions" LEFT OUTER JOIN "spree_orders_promotions" ON "spree_promotions"."id" = "spree_orders_promotions"."promotion_id" WHERE (starts_at IS NULL OR starts_at < '2015-02-15 04:29:07.100207') AND (expires_at IS NULL OR expires_at > '2015-02-15 04:29:07.101018') AND (("spree_promotions"."code" IS NULL AND "spree_promotions"."path" IS NULL OR "spree_orders_promotions"."order_id" = 6)) Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (112.4ms) UPDATE "spree_adjustments" SET "amount" = 1.15, "updated_at" = '2015-02-15 04:29:07.128951' WHERE "spree_adjustments"."id" = 74 SQL (55.2ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.15, "adjustment_total" = 1.15, "updated_at" = '2015-02-15 04:29:07.243284' WHERE "spree_line_items"."id" = 22  (0.4ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order')) Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (22) Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (19.5ms) UPDATE "spree_adjustments" SET "amount" = 1.15, "updated_at" = '2015-02-15 04:29:07.337257' WHERE "spree_adjustments"."id" = 74 SQL (21.4ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.15, "adjustment_total" = 1.15, "updated_at" = '2015-02-15 04:29:07.358622' WHERE "spree_line_items"."id" = 22  (0.4ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.2ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (16.5ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 22.99, "item_count" = 1, "adjustment_total" = 1.15, "included_tax_total" = 0.0, "additional_tax_total" = 1.15, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 24.14, "updated_at" = '2015-02-15 04:29:07.404825' WHERE "spree_orders"."id" = 6 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::Shipment Exists (0.2ms) SELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? LIMIT 1 [["order_id", 6]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 17]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 18]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (1099.0ms) Completed 200 OK in 2202ms (Views: 1112.9ms | ActiveRecord: 644.6ms) Started PUT "/api/checkouts/R079133342" for 127.0.0.1 at 2015-02-14 23:29:13 -0500 ActionController::RoutingError (No route matches [PUT] "/api/checkouts/R079133342"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.1ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.2ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (13.7ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (243.6ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (2.8ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1234.5ms) Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/auth_configuration/confirmable' LIMIT 1 Started GET "/" for 127.0.0.1 at 2015-02-14 23:30:52 -0500 Processing by Sprangular::HomeController#index as HTML Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 17]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (1246.9ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (947.0ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (3084.2ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (388.5ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.0ms) Completed 200 OK in 9057ms (Views: 9021.9ms | ActiveRecord: 16.0ms) Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-14 23:31:02 -0500 Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-14 23:31:02 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:02 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:02 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:02 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:02 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:02 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:02 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:03 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:03 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:03 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:03 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:03 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:03 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:03 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:03 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:03 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:03 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:03 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:03 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:03 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:04 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:04 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:04 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:04 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:04 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:04 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:04 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:04 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:04 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:04 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:04 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:04 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:04 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:04 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:05 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:05 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:05 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:05 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:05 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:05 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:05 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:05 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:05 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:05 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:05 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:05 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:05 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:06 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:06 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:06 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:06 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:06 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:06 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:06 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:06 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:06 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:06 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:06 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:06 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:06 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:06 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:07 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:07 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:07 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:07 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:07 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:07 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:07 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:07 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:07 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:07 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:07 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:07 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:07 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:07 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:08 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:08 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:08 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:08 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:08 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:08 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:08 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:08 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:08 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:09 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:09 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-14 23:31:09 -0500 Started GET "/api/products?page=1&per_page=12" for 127.0.0.1 at 2015-02-14 23:31:10 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12"} Spree::User Load (0.9ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (1.3ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 04:31:10.220083') AND ("spree_products".available_on <= '2015-02-15 04:31:10.221648') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0) subquery_for_count  (0.8ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 04:31:10.220083') AND ("spree_products".available_on <= '2015-02-15 04:31:10.221648') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (1.2ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 04:31:10.220083') AND ("spree_products".available_on <= '2015-02-15 04:31:10.221648') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.7ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.7ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Image Load (1.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.5ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Price Load (0.7ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::ProductProperty Load (1.5ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY spree_product_properties.position Spree::Property Load (0.8ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_variants".position ASC Spree::Image Load (1.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.5ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.9ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (1.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (1.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 9]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 9]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 9]] Spree::StockItem Load (1.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 11]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 11]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 11]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 12]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 12]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 12]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (6891.3ms) Completed 200 OK in 6958ms (Views: 6864.3ms | ActiveRecord: 60.2ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-14 23:31:17 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-14 23:31:17 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (1.0ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (257.5ms) Completed 200 OK in 328ms (Views: 280.3ms | ActiveRecord: 13.1ms) Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-14 23:31:17 -0500 Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-14 23:31:17 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.6ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (6.8ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (15.0ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (350.8ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (5.5ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1831.8ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-14 23:31:19 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-14 23:31:19 -0500 Started PUT "/api/checkouts/R079133342/apply_coupon_code" for 127.0.0.1 at 2015-02-14 23:31:25 -0500 ActionController::RoutingError (No route matches [PUT] "/api/checkouts/R079133342/apply_coupon_code"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.1ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.4ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (22.8ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (357.8ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.3ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1496.1ms) Started PUT "/api/checkouts/R079133342/apply_coupon_code" for 127.0.0.1 at 2015-02-14 23:34:31 -0500 ActiveRecord::SchemaMigration Load (1.8ms) SELECT "schema_migrations".* FROM "schema_migrations" ActionController::RoutingError (No route matches [PUT] "/api/checkouts/R079133342/apply_coupon_code"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.6ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.1ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (18.2ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (213.4ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (37.4ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1363.5ms) Started GET "/" for 127.0.0.1 at 2015-02-14 23:35:21 -0500 Processing by Sprangular::HomeController#index as HTML Spree::User Load (0.4ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.8ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.3ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 17]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.7ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Payment Load (0.6ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (1569.4ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (589.5ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (3824.6ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (531.7ms) Spree::Tracker Load (0.3ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (18.0ms) Completed 200 OK in 22228ms (Views: 21871.6ms | ActiveRecord: 37.0ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-14 23:35:44 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:44 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-14 23:35:44 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:44 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:44 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:44 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:44 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:45 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:45 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:45 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:45 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:45 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:45 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:45 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:45 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:45 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:45 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:45 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:46 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:46 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:46 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:46 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:46 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:46 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:46 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:46 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:46 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:46 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:46 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:46 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:47 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:47 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:47 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:47 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:47 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:47 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:47 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:47 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:47 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:47 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:47 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:47 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:48 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:48 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:48 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:48 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:48 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:48 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:48 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:48 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:48 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:48 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:48 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:48 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:48 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:49 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:49 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:49 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:49 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:49 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:49 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:49 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:49 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:49 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:49 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:49 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:49 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:50 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:50 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:50 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:50 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:50 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:50 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:50 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:50 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:50 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:50 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:50 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:50 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:50 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:51 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:51 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:51 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:51 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:51 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:51 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:51 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-14 23:35:51 -0500 Started GET "/api/products?page=1&per_page=12" for 127.0.0.1 at 2015-02-14 23:35:52 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12"} Spree::User Load (0.8ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (1.0ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 04:35:53.058779') AND ("spree_products".available_on <= '2015-02-15 04:35:53.060937') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0) subquery_for_count  (0.9ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 04:35:53.058779') AND ("spree_products".available_on <= '2015-02-15 04:35:53.060937') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (1.4ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 04:35:53.058779') AND ("spree_products".available_on <= '2015-02-15 04:35:53.060937') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::OptionType Load (0.8ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.9ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Image Load (1.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.4ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Price Load (1.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::ProductProperty Load (2.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY spree_product_properties.position Spree::Property Load (0.7ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (2.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_variants".position ASC Spree::Image Load (3.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.6ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.8ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 9]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 9]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 9]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 11]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 11]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 11]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 12]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 12]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 12]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (6720.2ms) Completed 200 OK in 6797ms (Views: 6700.6ms | ActiveRecord: 62.9ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-14 23:35:59 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-14 23:35:59 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.5ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (209.8ms) Completed 200 OK in 277ms (Views: 227.2ms | ActiveRecord: 11.4ms) Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-14 23:36:00 -0500 Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-14 23:36:00 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.5ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (3.3ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (19.4ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (275.7ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.8ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1707.9ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-14 23:36:02 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-14 23:36:02 -0500 Started PUT "/api/checkouts/R079133342/apply_coupon_code.json" for 127.0.0.1 at 2015-02-14 23:36:07 -0500 ActionController::RoutingError (No route matches [PUT] "/api/checkouts/R079133342/apply_coupon_code.json"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.1ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.1ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (13.6ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (210.5ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (4.0ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1175.8ms) Started GET "/" for 127.0.0.1 at 2015-02-14 23:46:13 -0500 Processing by Sprangular::HomeController#index as HTML Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.3ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.4ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 17]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.6ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (1356.8ms) CACHE (0.1ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] CACHE (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (1381.2ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (3665.3ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (576.2ms) Spree::Tracker Load (0.6ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (4.7ms) Completed 200 OK in 11727ms (Views: 11686.1ms | ActiveRecord: 18.4ms) Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-14 23:46:26 -0500 Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-14 23:46:26 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:26 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:26 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:26 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:26 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:26 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:27 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:27 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:27 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:27 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:27 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:27 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:27 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:27 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:27 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:28 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:28 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:28 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:28 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:28 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:28 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:28 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:28 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:29 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:29 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:29 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:29 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:29 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:29 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:29 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:29 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:29 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:30 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:30 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:30 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:30 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:30 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:30 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:30 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:30 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:30 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:30 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:30 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:31 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:31 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:31 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:31 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:31 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:31 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:31 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:31 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:31 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:32 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:32 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:32 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:32 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:32 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:32 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:32 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:32 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:32 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:32 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:32 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:33 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:33 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:33 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:33 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:33 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:33 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:33 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:33 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:33 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:33 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:33 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:34 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:34 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:34 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:34 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:34 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:34 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:34 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:34 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:34 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:35 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:35 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:35 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-14 23:46:35 -0500 Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-14 23:46:38 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.8ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (3.7ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (20.1ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (414.6ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (5.4ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1960.8ms) Started GET "/api/products?page=1&per_page=12" for 127.0.0.1 at 2015-02-14 23:46:40 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12"} Spree::User Load (0.9ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (1.6ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 04:46:40.597771') AND ("spree_products".available_on <= '2015-02-15 04:46:40.599469') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0) subquery_for_count  (1.0ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 04:46:40.597771') AND ("spree_products".available_on <= '2015-02-15 04:46:40.599469') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (1.7ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 04:46:40.597771') AND ("spree_products".available_on <= '2015-02-15 04:46:40.599469') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (1.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.9ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (1.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Image Load (1.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.6ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Price Load (1.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::ProductProperty Load (2.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY spree_product_properties.position Spree::Property Load (0.7ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (1.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_variants".position ASC Spree::Image Load (1.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.7ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.8ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (1.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 9]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 9]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 9]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 11]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 11]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 11]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 12]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 12]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 12]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (8125.7ms) Completed 200 OK in 8233ms (Views: 8097.9ms | ActiveRecord: 65.7ms) Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-14 23:46:48 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (195.8ms) Completed 200 OK in 250ms (Views: 213.8ms | ActiveRecord: 10.9ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-14 23:46:49 -0500 Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-14 23:46:49 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-14 23:46:49 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-14 23:46:49 -0500 Started PUT "/api/checkouts/R079133342/apply_coupon_code" for 127.0.0.1 at 2015-02-14 23:56:05 -0500 ActionController::RoutingError (No route matches [PUT] "/api/checkouts/R079133342/apply_coupon_code"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.6ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.3ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (8.3ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (149.0ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.7ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (785.4ms) Started GET "/" for 127.0.0.1 at 2015-02-15 00:18:36 -0500 Processing by Sprangular::HomeController#index as HTML Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.3ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 17]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (1205.3ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (905.8ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (3004.0ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (342.0ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.2ms) Completed 200 OK in 8622ms (Views: 8588.2ms | ActiveRecord: 16.1ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-15 00:18:45 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-15 00:18:46 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:46 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:46 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:46 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:46 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:46 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:46 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:46 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:46 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:46 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:46 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:46 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:47 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:47 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:47 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:47 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:47 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:47 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:47 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:47 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:47 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:47 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:47 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:47 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:48 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:48 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:48 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:48 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:48 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:48 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:48 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:48 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:48 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:48 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:48 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:48 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:48 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:48 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:49 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:49 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:49 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:49 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:49 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:49 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:49 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:49 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:49 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:49 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:49 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:50 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:50 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:50 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:50 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:50 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:50 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:50 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:50 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:50 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:50 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:50 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:50 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:50 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:50 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:51 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:51 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:51 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:51 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:51 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:51 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:51 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:51 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:51 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:51 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:51 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:51 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:51 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:52 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:52 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:52 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:52 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:52 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:52 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:52 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:52 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:53 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:53 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-15 00:18:53 -0500 Started GET "/api/products?page=1&per_page=12" for 127.0.0.1 at 2015-02-15 00:18:54 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12"} Spree::User Load (1.0ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (1.1ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 05:18:54.190741') AND ("spree_products".available_on <= '2015-02-15 05:18:54.192563') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0) subquery_for_count  (0.7ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 05:18:54.190741') AND ("spree_products".available_on <= '2015-02-15 05:18:54.192563') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (1.6ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 05:18:54.190741') AND ("spree_products".available_on <= '2015-02-15 05:18:54.192563') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.6ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (1.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Image Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.4ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Price Load (0.7ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::ProductProperty Load (2.9ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY spree_product_properties.position Spree::Property Load (0.8ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (1.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_variants".position ASC Spree::Image Load (1.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.6ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (1.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (1.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (1.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 9]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 9]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 9]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (1.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 11]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 11]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 11]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 12]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 12]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 12]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (7257.1ms) Completed 200 OK in 7336ms (Views: 7244.2ms | ActiveRecord: 62.9ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-15 00:19:01 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-15 00:19:01 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (0.8ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.5ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (228.0ms) Completed 200 OK in 294ms (Views: 249.4ms | ActiveRecord: 13.0ms) Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-15 00:19:02 -0500 Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-15 00:19:02 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.6ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (3.6ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (27.7ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (292.5ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (8.2ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1801.4ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-15 00:19:04 -0500 Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-15 00:19:04 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-15 00:19:04 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-15 00:19:04 -0500 Started PUT "/api/cart/update_variant" for 127.0.0.1 at 2015-02-15 00:19:09 -0500 Processing by Sprangular::CartsController#update_variant as JSON Parameters: {"variant_id"=>"2", "quantity"=>"2"} Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]]  (0.3ms) SELECT "spree_line_items"."id" FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]]  (0.1ms) begin transaction Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::TaxCategory Load (0.3ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_inventory_units" WHERE "spree_inventory_units"."line_item_id" = ? [["line_item_id", 22]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.9ms) UPDATE "spree_line_items" SET "quantity" = ?, "updated_at" = ? WHERE "spree_line_items"."id" = 22 [["quantity", 2], ["updated_at", "2015-02-15 05:19:09.429404"]] SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 05:19:09.433318' WHERE "spree_orders"."id" = 6 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 18]] SQL (0.5ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 38) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 434)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::TaxRate Load (0.3ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.3ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::LineItem' AND "spree_adjustments"."adjustable_id" IN (22) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' SQL (2.1ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 74]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] SQL (0.3ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 05:19:09.550134' WHERE "spree_line_items"."id" = 22 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.3ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 05:19:09.554109' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] SQL (0.2ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 05:19:09.570402' WHERE "spree_line_items"."id" = 22 SQL (0.2ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 45.98 WHERE "spree_line_items"."id" = 22 Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.6ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"], ["amount", 2.3], ["created_at", "2015-02-15 05:19:09.617568"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 05:19:09.617568"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.3ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.2ms) UPDATE "spree_adjustments" SET "amount" = 2.3, "updated_at" = '2015-02-15 05:19:09.639005' WHERE "spree_adjustments"."id" = 75 SQL (0.2ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.3, "adjustment_total" = 2.3, "updated_at" = '2015-02-15 05:19:09.640720' WHERE "spree_line_items"."id" = 22 SQL (0.3ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 05:19:09.642774' WHERE "spree_line_items"."id" = 22 SQL (0.4ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 05:19:09.645319' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.2ms) UPDATE "spree_adjustments" SET "amount" = 2.3, "updated_at" = '2015-02-15 05:19:09.664064' WHERE "spree_adjustments"."id" = 75 SQL (0.2ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.3, "adjustment_total" = 2.3, "updated_at" = '2015-02-15 05:19:09.665556' WHERE "spree_line_items"."id" = 22  (20.2ms) commit transaction  (0.2ms) begin transaction  (0.1ms) commit transaction  (0.4ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.5ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.4ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.4ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order')) Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (22) Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (16.8ms) UPDATE "spree_adjustments" SET "amount" = 2.3, "updated_at" = '2015-02-15 05:19:09.735507' WHERE "spree_adjustments"."id" = 75 SQL (25.4ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.3, "adjustment_total" = 2.3, "updated_at" = '2015-02-15 05:19:09.753984' WHERE "spree_line_items"."id" = 22  (0.6ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.4ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.2ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (16.9ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 48.28, "updated_at" = '2015-02-15 05:19:09.804562' WHERE "spree_orders"."id" = 6 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::Promotion Load (0.6ms) SELECT DISTINCT "spree_promotions".* FROM "spree_promotions" LEFT OUTER JOIN "spree_orders_promotions" ON "spree_promotions"."id" = "spree_orders_promotions"."promotion_id" WHERE (starts_at IS NULL OR starts_at < '2015-02-15 05:19:09.838126') AND (expires_at IS NULL OR expires_at > '2015-02-15 05:19:09.838666') AND (("spree_promotions"."code" IS NULL AND "spree_promotions"."path" IS NULL OR "spree_orders_promotions"."order_id" = 6)) Spree::Shipment Exists (0.4ms) SELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? LIMIT 1 [["order_id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.2ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order')) Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (22) Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (17.8ms) UPDATE "spree_adjustments" SET "amount" = 2.3, "updated_at" = '2015-02-15 05:19:09.878772' WHERE "spree_adjustments"."id" = 75 SQL (67.7ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.3, "adjustment_total" = 2.3, "updated_at" = '2015-02-15 05:19:09.898105' WHERE "spree_line_items"."id" = 22  (0.4ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (148.9ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 48.28, "updated_at" = '2015-02-15 05:19:09.988066' WHERE "spree_orders"."id" = 6 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 17]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 18]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (994.8ms) Completed 200 OK in 1841ms (Views: 1005.9ms | ActiveRecord: 358.1ms) Started PUT "/api/orders/R079133342/apply_coupon_code" for 127.0.0.1 at 2015-02-15 00:19:19 -0500 ActionController::RoutingError (No route matches [PUT] "/api/orders/R079133342/apply_coupon_code"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.7ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (7.6ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (16.2ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (232.8ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.4ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1274.8ms) Started GET "/" for 127.0.0.1 at 2015-02-15 00:57:48 -0500 Processing by Sprangular::HomeController#index as HTML Spree::User Load (0.4ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.1ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.1ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 17]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (762.5ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (587.0ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (1936.2ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (227.3ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.6ms) Completed 200 OK in 4329ms (Views: 4305.9ms | ActiveRecord: 10.1ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-15 00:57:53 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:53 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:53 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:53 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-15 00:57:53 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:53 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:53 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:53 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:53 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:53 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:53 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:53 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:53 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:53 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:53 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:53 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:54 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:54 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:54 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:54 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:54 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:54 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:54 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:54 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:54 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:54 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:54 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:54 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:54 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:54 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:54 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:54 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:54 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:54 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:54 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:55 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:55 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:55 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:55 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:55 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:55 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:55 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:55 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:55 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:55 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:55 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:55 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:55 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:55 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:55 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:55 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:55 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:55 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:56 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:56 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:56 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:56 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:56 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:56 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:56 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:56 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:56 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:56 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:56 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:56 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:56 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:56 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:56 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:56 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:56 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:56 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:56 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:56 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:57 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:57 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:57 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:57 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:57 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:57 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:57 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:57 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:57 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:57 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:57 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:57 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:57 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:57 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:57 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:57 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:57 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:58 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:58 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:58 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:58 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:58 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:58 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:58 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:58 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:58 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:58 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:58 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:58 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:58 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-15 00:57:58 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-15 00:57:59 -0500 Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-15 00:57:59 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-15 00:57:59 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (0.4ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.3ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (161.0ms) Completed 200 OK in 197ms (Views: 171.3ms | ActiveRecord: 7.5ms) Started GET "/api/products?page=1&per_page=12" for 127.0.0.1 at 2015-02-15 00:57:59 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12"} Spree::User Load (0.5ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.9ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 05:58:00.014885') AND ("spree_products".available_on <= '2015-02-15 05:58:00.016340') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0) subquery_for_count  (1.4ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 05:58:00.014885') AND ("spree_products".available_on <= '2015-02-15 05:58:00.016340') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (1.9ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 05:58:00.014885') AND ("spree_products".available_on <= '2015-02-15 05:58:00.016340') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.6ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Image Load (1.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.4ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Price Load (0.8ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::ProductProperty Load (1.6ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY spree_product_properties.position Spree::Property Load (0.6ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_variants".position ASC Spree::Image Load (1.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.4ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 9]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 9]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 9]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 11]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 11]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 11]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 12]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 12]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 12]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (5945.8ms) Completed 200 OK in 6009ms (Views: 5921.3ms | ActiveRecord: 50.4ms) Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-15 00:58:05 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.0ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.2ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (12.0ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (411.0ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (4.2ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1738.5ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-15 00:58:07 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-15 00:58:08 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-15 00:58:08 -0500 Started PUT "/api/checkouts/R079133342" for 127.0.0.1 at 2015-02-15 00:58:11 -0500 ActionController::RoutingError (No route matches [PUT] "/api/checkouts/R079133342"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.6ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.2ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (13.4ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (246.9ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.2ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1204.4ms) Started GET "/api/countries" for 127.0.0.1 at 2015-02-15 00:58:12 -0500 Processing by Sprangular::CountriesController#index as JSON Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Country Load (5.2ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."name" ASC Spree::State Load (57.7ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" IN (3, 6, 62, 11, 1, 8, 5, 9, 4, 10, 7, 14, 13, 12, 16, 32, 23, 19, 18, 36, 20, 37, 25, 27, 33, 29, 30, 17, 35, 34, 31, 106, 28, 22, 21, 24, 117, 47, 38, 52, 124, 41, 214, 46, 48, 54, 39, 49, 119, 42, 40, 45, 50, 98, 51, 53, 55, 56, 44, 59, 58, 60, 61, 63, 65, 209, 88, 67, 64, 69, 72, 74, 71, 70, 75, 80, 175, 215, 76, 85, 79, 57, 82, 83, 89, 84, 78, 87, 92, 91, 81, 86, 93, 94, 99, 96, 235, 97, 95, 100, 109, 105, 101, 108, 107, 102, 104, 103, 110, 112, 114, 111, 113, 125, 115, 118, 121, 122, 123, 116, 126, 135, 127, 132, 131, 136, 129, 133, 134, 148, 144, 142, 156, 158, 155, 145, 153, 143, 150, 151, 154, 245, 157, 73, 139, 138, 147, 140, 152, 137, 159, 146, 160, 169, 168, 166, 161, 171, 165, 162, 164, 170, 163, 149, 167, 172, 178, 184, 182, 173, 176, 185, 174, 177, 181, 179, 183, 186, 188, 190, 191, 187, 26, 198, 120, 128, 141, 180, 236, 243, 203, 208, 192, 204, 189, 194, 202, 197, 210, 201, 199, 193, 205, 246, 90, 207, 68, 130, 195, 206, 200, 212, 196, 43, 211, 227, 218, 228, 217, 220, 216, 219, 223, 225, 222, 224, 221, 213, 226, 230, 229, 2, 77, 232, 231, 233, 234, 241, 237, 240, 238, 239, 242, 66, 244, 247, 248, 15) ORDER BY name ASC Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/countries/index.rabl (15044.6ms) Completed 200 OK in 15089ms (Views: 15005.6ms | ActiveRecord: 65.4ms) Started GET "/api/cart.json" for 127.0.0.1 at 2015-02-15 00:58:28 -0500 Processing by Sprangular::CartsController#show as JSON Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.1ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 17]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 18]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (996.7ms) Completed 200 OK in 1039ms (Views: 1008.8ms | ActiveRecord: 11.6ms) Started GET "/assets/checkout/index.html" for 127.0.0.1 at 2015-02-15 00:58:29 -0500 Started GET "/assets/checkout/nav.html" for 127.0.0.1 at 2015-02-15 00:58:29 -0500 Started GET "/assets/shipping/rates.html" for 127.0.0.1 at 2015-02-15 00:58:29 -0500 Started GET "/assets/addresses/selection.html" for 127.0.0.1 at 2015-02-15 00:58:29 -0500 Started GET "/assets/credit_cards/selection.html" for 127.0.0.1 at 2015-02-15 00:58:29 -0500 Started GET "/assets/addresses/form.html" for 127.0.0.1 at 2015-02-15 00:58:29 -0500 Started GET "/assets/credit_cards/form.html" for 127.0.0.1 at 2015-02-15 00:58:29 -0500 Started GET "/" for 127.0.0.1 at 2015-02-15 01:01:40 -0500 Processing by Sprangular::HomeController#index as HTML Spree::User Load (0.4ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.1ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.1ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 17]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (776.7ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (567.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (1864.2ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (213.0ms) Spree::Tracker Load (0.3ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.0ms) Completed 200 OK in 5262ms (Views: 5239.5ms | ActiveRecord: 9.9ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-15 01:01:46 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:46 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:46 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-15 01:01:46 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:46 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:46 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:46 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:46 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:47 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:47 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:47 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:47 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:47 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:47 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:47 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:47 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:47 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:47 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:47 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:47 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:47 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:48 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:48 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:48 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:48 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:48 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:48 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:48 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:48 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:48 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:48 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:48 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:48 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:48 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:49 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:49 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:49 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:49 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:49 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:49 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:49 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:49 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:49 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:49 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:49 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:49 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:49 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:49 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:50 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:50 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:50 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:50 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:50 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:50 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:50 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:50 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:50 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:50 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:50 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:50 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:50 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:51 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:51 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:51 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:51 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:51 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:51 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:51 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:51 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:51 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:51 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:51 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:51 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:51 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:51 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:52 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:52 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:52 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:52 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:52 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:52 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:52 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:52 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:52 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:52 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:53 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:53 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-15 01:01:53 -0500 Started GET "/api/cart.json" for 127.0.0.1 at 2015-02-15 01:01:54 -0500 Processing by Sprangular::CartsController#show as JSON Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 17]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 18]] Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (1110.7ms) Completed 200 OK in 1174ms (Views: 1126.7ms | ActiveRecord: 12.2ms) Started GET "/api/countries" for 127.0.0.1 at 2015-02-15 01:01:55 -0500 Processing by Sprangular::CountriesController#index as JSON Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (26.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Country Load (8.3ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."name" ASC Spree::State Load (60.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" IN (3, 6, 62, 11, 1, 8, 5, 9, 4, 10, 7, 14, 13, 12, 16, 32, 23, 19, 18, 36, 20, 37, 25, 27, 33, 29, 30, 17, 35, 34, 31, 106, 28, 22, 21, 24, 117, 47, 38, 52, 124, 41, 214, 46, 48, 54, 39, 49, 119, 42, 40, 45, 50, 98, 51, 53, 55, 56, 44, 59, 58, 60, 61, 63, 65, 209, 88, 67, 64, 69, 72, 74, 71, 70, 75, 80, 175, 215, 76, 85, 79, 57, 82, 83, 89, 84, 78, 87, 92, 91, 81, 86, 93, 94, 99, 96, 235, 97, 95, 100, 109, 105, 101, 108, 107, 102, 104, 103, 110, 112, 114, 111, 113, 125, 115, 118, 121, 122, 123, 116, 126, 135, 127, 132, 131, 136, 129, 133, 134, 148, 144, 142, 156, 158, 155, 145, 153, 143, 150, 151, 154, 245, 157, 73, 139, 138, 147, 140, 152, 137, 159, 146, 160, 169, 168, 166, 161, 171, 165, 162, 164, 170, 163, 149, 167, 172, 178, 184, 182, 173, 176, 185, 174, 177, 181, 179, 183, 186, 188, 190, 191, 187, 26, 198, 120, 128, 141, 180, 236, 243, 203, 208, 192, 204, 189, 194, 202, 197, 210, 201, 199, 193, 205, 246, 90, 207, 68, 130, 195, 206, 200, 212, 196, 43, 211, 227, 218, 228, 217, 220, 216, 219, 223, 225, 222, 224, 221, 213, 226, 230, 229, 2, 77, 232, 231, 233, 234, 241, 237, 240, 238, 239, 242, 66, 244, 247, 248, 15) ORDER BY name ASC Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/countries/index.rabl (15237.2ms) Completed 200 OK in 15306ms (Views: 15189.0ms | ActiveRecord: 96.6ms) Started GET "/assets/checkout/index.html" for 127.0.0.1 at 2015-02-15 01:02:10 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-15 01:02:10 -0500 Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-15 01:02:11 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-15 01:02:11 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (1.9ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (1.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (139.5ms) Completed 200 OK in 206ms (Views: 156.2ms | ActiveRecord: 11.3ms) Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-15 01:02:11 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.7ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.2ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (13.0ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (224.0ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.4ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1127.5ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-15 01:02:12 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-15 01:02:12 -0500 Started GET "/assets/addresses/selection.html" for 127.0.0.1 at 2015-02-15 01:02:12 -0500 Started GET "/assets/checkout/nav.html" for 127.0.0.1 at 2015-02-15 01:02:13 -0500 Started GET "/assets/shipping/rates.html" for 127.0.0.1 at 2015-02-15 01:02:13 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-15 01:02:13 -0500 Started GET "/assets/credit_cards/selection.html" for 127.0.0.1 at 2015-02-15 01:02:13 -0500 Started GET "/assets/addresses/form.html" for 127.0.0.1 at 2015-02-15 01:02:13 -0500 Started GET "/assets/credit_cards/form.html" for 127.0.0.1 at 2015-02-15 01:02:13 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-15 01:02:21 -0500 Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-15 01:02:21 -0500 Started GET "/" for 127.0.0.1 at 2015-02-15 01:02:38 -0500 Processing by Sprangular::HomeController#index as HTML Spree::User Load (0.5ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.1ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 17]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (1222.2ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (909.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (2970.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (347.7ms) Spree::Tracker Load (0.6ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (10.4ms) Completed 200 OK in 8377ms (Views: 8343.6ms | ActiveRecord: 14.9ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-15 01:02:48 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-15 01:02:48 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:48 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:48 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:48 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:48 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:48 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:48 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:49 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:49 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:49 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:49 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:49 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:49 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:49 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:49 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:49 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:49 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:49 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:49 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:50 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:50 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:50 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:50 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:50 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:50 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:50 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:50 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:50 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:50 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:50 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:50 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:51 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:51 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:51 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:51 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:51 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:51 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:51 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:51 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:51 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:51 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:51 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:52 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:52 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:52 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:52 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:52 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:52 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:52 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:52 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:52 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:52 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:53 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:53 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:53 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:53 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:53 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:53 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:53 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:53 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:53 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:53 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:53 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:53 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:54 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:54 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:54 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:54 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:54 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:54 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:54 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:54 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:54 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:54 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:54 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:54 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:54 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:54 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:55 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:55 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:55 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:55 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:55 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:55 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:55 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:55 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-15 01:02:55 -0500 Started GET "/api/countries" for 127.0.0.1 at 2015-02-15 01:03:03 -0500 Processing by Sprangular::CountriesController#index as JSON Spree::User Load (0.8ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Country Load (8.6ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."name" ASC Spree::State Load (65.8ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" IN (3, 6, 62, 11, 1, 8, 5, 9, 4, 10, 7, 14, 13, 12, 16, 32, 23, 19, 18, 36, 20, 37, 25, 27, 33, 29, 30, 17, 35, 34, 31, 106, 28, 22, 21, 24, 117, 47, 38, 52, 124, 41, 214, 46, 48, 54, 39, 49, 119, 42, 40, 45, 50, 98, 51, 53, 55, 56, 44, 59, 58, 60, 61, 63, 65, 209, 88, 67, 64, 69, 72, 74, 71, 70, 75, 80, 175, 215, 76, 85, 79, 57, 82, 83, 89, 84, 78, 87, 92, 91, 81, 86, 93, 94, 99, 96, 235, 97, 95, 100, 109, 105, 101, 108, 107, 102, 104, 103, 110, 112, 114, 111, 113, 125, 115, 118, 121, 122, 123, 116, 126, 135, 127, 132, 131, 136, 129, 133, 134, 148, 144, 142, 156, 158, 155, 145, 153, 143, 150, 151, 154, 245, 157, 73, 139, 138, 147, 140, 152, 137, 159, 146, 160, 169, 168, 166, 161, 171, 165, 162, 164, 170, 163, 149, 167, 172, 178, 184, 182, 173, 176, 185, 174, 177, 181, 179, 183, 186, 188, 190, 191, 187, 26, 198, 120, 128, 141, 180, 236, 243, 203, 208, 192, 204, 189, 194, 202, 197, 210, 201, 199, 193, 205, 246, 90, 207, 68, 130, 195, 206, 200, 212, 196, 43, 211, 227, 218, 228, 217, 220, 216, 219, 223, 225, 222, 224, 221, 213, 226, 230, 229, 2, 77, 232, 231, 233, 234, 241, 237, 240, 238, 239, 242, 66, 244, 247, 248, 15) ORDER BY name ASC Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/countries/index.rabl (15317.8ms) Completed 200 OK in 15385ms (Views: 15273.4ms | ActiveRecord: 78.1ms) Started GET "/api/cart.json" for 127.0.0.1 at 2015-02-15 01:03:19 -0500 Processing by Sprangular::CartsController#show as JSON Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.1ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 17]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 18]] Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (988.3ms) Completed 200 OK in 1030ms (Views: 999.0ms | ActiveRecord: 11.3ms) Started GET "/assets/checkout/index.html" for 127.0.0.1 at 2015-02-15 01:03:20 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-15 01:03:20 -0500 Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-15 01:03:20 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-15 01:03:20 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.4ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (144.7ms) Completed 200 OK in 215ms (Views: 168.7ms | ActiveRecord: 9.7ms) Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-15 01:03:20 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.6ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.1ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (12.3ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (206.4ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.0ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1117.8ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-15 01:03:22 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-15 01:03:22 -0500 Started GET "/assets/checkout/nav.html" for 127.0.0.1 at 2015-02-15 01:03:22 -0500 Started GET "/assets/addresses/selection.html" for 127.0.0.1 at 2015-02-15 01:03:22 -0500 Started GET "/assets/shipping/rates.html" for 127.0.0.1 at 2015-02-15 01:03:22 -0500 Started GET "/assets/credit_cards/selection.html" for 127.0.0.1 at 2015-02-15 01:03:22 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-15 01:03:22 -0500 Started GET "/assets/addresses/form.html" for 127.0.0.1 at 2015-02-15 01:03:22 -0500 Started GET "/assets/credit_cards/form.html" for 127.0.0.1 at 2015-02-15 01:03:22 -0500 Started GET "/" for 127.0.0.1 at 2015-02-15 01:04:38 -0500 Processing by Sprangular::HomeController#index as HTML Spree::User Load (0.3ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.1ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.1ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 17]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (877.2ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (593.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (2187.8ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (244.0ms) Spree::Tracker Load (0.3ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.2ms) Completed 200 OK in 5676ms (Views: 5652.8ms | ActiveRecord: 11.3ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-15 01:04:44 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-15 01:04:44 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:44 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:44 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:45 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:45 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:45 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:45 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:45 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:45 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:45 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:45 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:45 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:45 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:45 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:45 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:45 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:45 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:45 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:46 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:46 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:46 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:46 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:46 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:46 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:46 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:46 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:46 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:46 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:46 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:47 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:47 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:47 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:47 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:47 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:47 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:47 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:47 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:47 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:47 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:47 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:48 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:48 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:48 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:48 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:48 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:48 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:48 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:48 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:48 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:48 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:48 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:48 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:48 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:49 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:49 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:49 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:49 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:49 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:49 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:49 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:49 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:49 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:49 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:49 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:49 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:50 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:50 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:50 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:50 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:50 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:50 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:50 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:50 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:50 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:50 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:50 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:50 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:50 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:51 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:51 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:51 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:51 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:51 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:51 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:51 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:51 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-15 01:04:52 -0500 Started GET "/api/countries" for 127.0.0.1 at 2015-02-15 01:04:53 -0500 Processing by Sprangular::CountriesController#index as JSON Spree::User Load (2.8ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (1.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (1.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Country Load (9.1ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."name" ASC Spree::State Load (66.8ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" IN (3, 6, 62, 11, 1, 8, 5, 9, 4, 10, 7, 14, 13, 12, 16, 32, 23, 19, 18, 36, 20, 37, 25, 27, 33, 29, 30, 17, 35, 34, 31, 106, 28, 22, 21, 24, 117, 47, 38, 52, 124, 41, 214, 46, 48, 54, 39, 49, 119, 42, 40, 45, 50, 98, 51, 53, 55, 56, 44, 59, 58, 60, 61, 63, 65, 209, 88, 67, 64, 69, 72, 74, 71, 70, 75, 80, 175, 215, 76, 85, 79, 57, 82, 83, 89, 84, 78, 87, 92, 91, 81, 86, 93, 94, 99, 96, 235, 97, 95, 100, 109, 105, 101, 108, 107, 102, 104, 103, 110, 112, 114, 111, 113, 125, 115, 118, 121, 122, 123, 116, 126, 135, 127, 132, 131, 136, 129, 133, 134, 148, 144, 142, 156, 158, 155, 145, 153, 143, 150, 151, 154, 245, 157, 73, 139, 138, 147, 140, 152, 137, 159, 146, 160, 169, 168, 166, 161, 171, 165, 162, 164, 170, 163, 149, 167, 172, 178, 184, 182, 173, 176, 185, 174, 177, 181, 179, 183, 186, 188, 190, 191, 187, 26, 198, 120, 128, 141, 180, 236, 243, 203, 208, 192, 204, 189, 194, 202, 197, 210, 201, 199, 193, 205, 246, 90, 207, 68, 130, 195, 206, 200, 212, 196, 43, 211, 227, 218, 228, 217, 220, 216, 219, 223, 225, 222, 224, 221, 213, 226, 230, 229, 2, 77, 232, 231, 233, 234, 241, 237, 240, 238, 239, 242, 66, 244, 247, 248, 15) ORDER BY name ASC Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/countries/index.rabl (15119.3ms) Completed 200 OK in 15224ms (Views: 15074.4ms | ActiveRecord: 84.3ms) Started GET "/api/cart.json" for 127.0.0.1 at 2015-02-15 01:05:08 -0500 Processing by Sprangular::CartsController#show as JSON Spree::User Load (0.5ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 17]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 18]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (1.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (1.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (1015.1ms) Completed 200 OK in 1055ms (Views: 1023.6ms | ActiveRecord: 13.7ms) Started GET "/assets/checkout/index.html" for 127.0.0.1 at 2015-02-15 01:05:09 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-15 01:05:09 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-15 01:05:09 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (0.8ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (1.1ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.7ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (1.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (169.2ms) Completed 200 OK in 246ms (Views: 196.5ms | ActiveRecord: 12.1ms) Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-15 01:05:09 -0500 Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-15 01:05:10 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.6ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.3ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (42.9ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (212.1ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (2.9ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1181.4ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-15 01:05:11 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-15 01:05:11 -0500 Started GET "/assets/checkout/nav.html" for 127.0.0.1 at 2015-02-15 01:05:11 -0500 Started GET "/assets/addresses/selection.html" for 127.0.0.1 at 2015-02-15 01:05:11 -0500 Started GET "/assets/shipping/rates.html" for 127.0.0.1 at 2015-02-15 01:05:11 -0500 Started GET "/assets/credit_cards/selection.html" for 127.0.0.1 at 2015-02-15 01:05:11 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-15 01:05:12 -0500 Started GET "/assets/addresses/form.html" for 127.0.0.1 at 2015-02-15 01:05:12 -0500 Started GET "/assets/credit_cards/form.html" for 127.0.0.1 at 2015-02-15 01:05:12 -0500 Started GET "/" for 127.0.0.1 at 2015-02-15 01:07:08 -0500 Processing by Sprangular::HomeController#index as HTML Spree::User Load (0.5ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.1ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.1ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 17]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (769.0ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (582.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (1920.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (242.7ms) Spree::Tracker Load (0.3ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.3ms) Completed 200 OK in 5271ms (Views: 5249.4ms | ActiveRecord: 10.0ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-15 01:07:14 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-15 01:07:14 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:14 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:14 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:15 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:15 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:15 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:15 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:15 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:15 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:15 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:15 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:15 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:15 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:15 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:15 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:15 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:15 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:15 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:15 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:15 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:15 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:16 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:16 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:16 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:16 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:16 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:16 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:16 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:16 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:16 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:16 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:16 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:16 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:16 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:16 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:16 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:16 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:16 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:16 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:16 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:17 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:17 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:17 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:17 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:17 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:17 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:17 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:17 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:17 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:17 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:17 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:17 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:17 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:17 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:17 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:17 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:17 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:18 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:18 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:18 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:18 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:18 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:18 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:18 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:18 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:18 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:18 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:18 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:18 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:18 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:18 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:18 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:18 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:18 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:18 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:18 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:19 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:19 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:19 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:19 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:19 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:19 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:19 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:19 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:19 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:19 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-15 01:07:19 -0500 Started GET "/api/countries" for 127.0.0.1 at 2015-02-15 01:07:20 -0500 Processing by Sprangular::CountriesController#index as JSON Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Country Load (8.8ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."name" ASC Spree::State Load (97.9ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" IN (3, 6, 62, 11, 1, 8, 5, 9, 4, 10, 7, 14, 13, 12, 16, 32, 23, 19, 18, 36, 20, 37, 25, 27, 33, 29, 30, 17, 35, 34, 31, 106, 28, 22, 21, 24, 117, 47, 38, 52, 124, 41, 214, 46, 48, 54, 39, 49, 119, 42, 40, 45, 50, 98, 51, 53, 55, 56, 44, 59, 58, 60, 61, 63, 65, 209, 88, 67, 64, 69, 72, 74, 71, 70, 75, 80, 175, 215, 76, 85, 79, 57, 82, 83, 89, 84, 78, 87, 92, 91, 81, 86, 93, 94, 99, 96, 235, 97, 95, 100, 109, 105, 101, 108, 107, 102, 104, 103, 110, 112, 114, 111, 113, 125, 115, 118, 121, 122, 123, 116, 126, 135, 127, 132, 131, 136, 129, 133, 134, 148, 144, 142, 156, 158, 155, 145, 153, 143, 150, 151, 154, 245, 157, 73, 139, 138, 147, 140, 152, 137, 159, 146, 160, 169, 168, 166, 161, 171, 165, 162, 164, 170, 163, 149, 167, 172, 178, 184, 182, 173, 176, 185, 174, 177, 181, 179, 183, 186, 188, 190, 191, 187, 26, 198, 120, 128, 141, 180, 236, 243, 203, 208, 192, 204, 189, 194, 202, 197, 210, 201, 199, 193, 205, 246, 90, 207, 68, 130, 195, 206, 200, 212, 196, 43, 211, 227, 218, 228, 217, 220, 216, 219, 223, 225, 222, 224, 221, 213, 226, 230, 229, 2, 77, 232, 231, 233, 234, 241, 237, 240, 238, 239, 242, 66, 244, 247, 248, 15) ORDER BY name ASC Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/countries/index.rabl (15120.7ms) Completed 200 OK in 15174ms (Views: 15044.6ms | ActiveRecord: 109.4ms) Started GET "/api/cart.json" for 127.0.0.1 at 2015-02-15 01:07:35 -0500 Processing by Sprangular::CartsController#show as JSON Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 17]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 18]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (1017.9ms) Completed 200 OK in 1059ms (Views: 1028.2ms | ActiveRecord: 12.1ms) Started GET "/assets/checkout/index.html" for 127.0.0.1 at 2015-02-15 01:07:36 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-15 01:07:37 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-15 01:07:37 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (1.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (1.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (167.1ms) Completed 200 OK in 245ms (Views: 193.5ms | ActiveRecord: 10.9ms) Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-15 01:07:37 -0500 Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-15 01:07:37 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.6ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.2ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (12.6ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (212.8ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (2.9ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1119.4ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-15 01:07:38 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-15 01:07:39 -0500 Started GET "/assets/checkout/nav.html" for 127.0.0.1 at 2015-02-15 01:07:39 -0500 Started GET "/assets/shipping/rates.html" for 127.0.0.1 at 2015-02-15 01:07:39 -0500 Started GET "/assets/addresses/selection.html" for 127.0.0.1 at 2015-02-15 01:07:39 -0500 Started GET "/assets/credit_cards/selection.html" for 127.0.0.1 at 2015-02-15 01:07:39 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-15 01:07:39 -0500 Started GET "/assets/addresses/form.html" for 127.0.0.1 at 2015-02-15 01:07:39 -0500 Started GET "/assets/credit_cards/form.html" for 127.0.0.1 at 2015-02-15 01:07:39 -0500 Started PUT "/api/checkouts/R079133342" for 127.0.0.1 at 2015-02-15 01:07:52 -0500 ActionController::RoutingError (No route matches [PUT] "/api/checkouts/R079133342"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.9ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.3ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (13.9ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (245.2ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.5ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1234.2ms) Started GET "/" for 127.0.0.1 at 2015-02-15 01:08:56 -0500 Processing by Sprangular::HomeController#index as HTML Spree::User Load (0.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.7ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 17]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (1241.1ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (956.6ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (3093.9ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (375.8ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (3.2ms) Completed 200 OK in 8761ms (Views: 8725.7ms | ActiveRecord: 16.5ms) Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-15 01:09:05 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:05 -0500 Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-15 01:09:05 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:06 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:06 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:06 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:06 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:06 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:06 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:06 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:06 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:06 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:06 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:06 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:07 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:07 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:07 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:07 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:07 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:07 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:07 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:07 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:07 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:07 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:07 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:07 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:08 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:08 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:08 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:08 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:08 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:08 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:08 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:08 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:08 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:08 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:08 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:08 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:08 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:08 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:09 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:09 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:09 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:09 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:09 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:09 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:09 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:09 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:09 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:09 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:09 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:09 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:09 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:10 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:10 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:10 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:10 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:10 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:10 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:10 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:10 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:10 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:10 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:10 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:10 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:10 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:11 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:11 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:11 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:11 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:11 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:11 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:11 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:11 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:11 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:11 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:11 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:11 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:11 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:11 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:12 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:12 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:12 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:12 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:12 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:12 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:12 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-15 01:09:12 -0500 Started GET "/api/countries" for 127.0.0.1 at 2015-02-15 01:09:13 -0500 Processing by Sprangular::CountriesController#index as JSON Spree::User Load (0.9ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Country Load (5.0ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."name" ASC Spree::State Load (69.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" IN (3, 6, 62, 11, 1, 8, 5, 9, 4, 10, 7, 14, 13, 12, 16, 32, 23, 19, 18, 36, 20, 37, 25, 27, 33, 29, 30, 17, 35, 34, 31, 106, 28, 22, 21, 24, 117, 47, 38, 52, 124, 41, 214, 46, 48, 54, 39, 49, 119, 42, 40, 45, 50, 98, 51, 53, 55, 56, 44, 59, 58, 60, 61, 63, 65, 209, 88, 67, 64, 69, 72, 74, 71, 70, 75, 80, 175, 215, 76, 85, 79, 57, 82, 83, 89, 84, 78, 87, 92, 91, 81, 86, 93, 94, 99, 96, 235, 97, 95, 100, 109, 105, 101, 108, 107, 102, 104, 103, 110, 112, 114, 111, 113, 125, 115, 118, 121, 122, 123, 116, 126, 135, 127, 132, 131, 136, 129, 133, 134, 148, 144, 142, 156, 158, 155, 145, 153, 143, 150, 151, 154, 245, 157, 73, 139, 138, 147, 140, 152, 137, 159, 146, 160, 169, 168, 166, 161, 171, 165, 162, 164, 170, 163, 149, 167, 172, 178, 184, 182, 173, 176, 185, 174, 177, 181, 179, 183, 186, 188, 190, 191, 187, 26, 198, 120, 128, 141, 180, 236, 243, 203, 208, 192, 204, 189, 194, 202, 197, 210, 201, 199, 193, 205, 246, 90, 207, 68, 130, 195, 206, 200, 212, 196, 43, 211, 227, 218, 228, 217, 220, 216, 219, 223, 225, 222, 224, 221, 213, 226, 230, 229, 2, 77, 232, 231, 233, 234, 241, 237, 240, 238, 239, 242, 66, 244, 247, 248, 15) ORDER BY name ASC Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/countries/index.rabl (15557.1ms) Completed 200 OK in 15629ms (Views: 15519.7ms | ActiveRecord: 77.8ms) Started GET "/api/cart.json" for 127.0.0.1 at 2015-02-15 01:09:29 -0500 Processing by Sprangular::CartsController#show as JSON Spree::User Load (0.5ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.1ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 17]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 18]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (1010.6ms) Completed 200 OK in 1053ms (Views: 1021.6ms | ActiveRecord: 12.0ms) Started GET "/assets/checkout/index.html" for 127.0.0.1 at 2015-02-15 01:09:30 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-15 01:09:30 -0500 Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-15 01:09:30 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-15 01:09:30 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (150.8ms) Completed 200 OK in 215ms (Views: 181.9ms | ActiveRecord: 8.6ms) Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-15 01:09:31 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.1ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.3ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (13.5ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (212.4ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (2.9ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1136.7ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-15 01:09:32 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-15 01:09:32 -0500 Started GET "/assets/checkout/nav.html" for 127.0.0.1 at 2015-02-15 01:09:32 -0500 Started GET "/assets/addresses/selection.html" for 127.0.0.1 at 2015-02-15 01:09:32 -0500 Started GET "/assets/shipping/rates.html" for 127.0.0.1 at 2015-02-15 01:09:32 -0500 Started GET "/assets/credit_cards/selection.html" for 127.0.0.1 at 2015-02-15 01:09:32 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-15 01:09:33 -0500 Started GET "/assets/addresses/form.html" for 127.0.0.1 at 2015-02-15 01:09:33 -0500 Started GET "/assets/credit_cards/form.html" for 127.0.0.1 at 2015-02-15 01:09:33 -0500 Started PUT "/api/checkouts/R079133342/quick_update" for 127.0.0.1 at 2015-02-15 01:09:40 -0500 Processing by Spree::Api::CheckoutsController#quick_update as JSON Parameters: {"order"=>{"use_billing"=>"false", "coupon_code"=>"", "ship_address_attributes"=>{"firstname"=>"Joshua", "lastname"=>"Nussbaum", "address1"=>"3447 Saint Dominique", "address2"=>"", "city"=>"Montreal", "phone"=>"5145910281", "zipcode"=>"H2X 2X5", "state_id"=>"442", "country_id"=>"38"}, "bill_address_attributes"=>{"firstname"=>"Joshua", "lastname"=>"Nussbaum", "address1"=>"3447 Saint Dominique", "address2"=>"", "city"=>"Montreal", "phone"=>"5145910281", "zipcode"=>"H2X 2X5", "state_id"=>"434", "country_id"=>"38"}, "payments_attributes"=>[{"payment_method_id"=>"1"}]}, "id"=>"R079133342"} Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1  (0.5ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1 Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]]  (0.1ms) begin transaction Spree::Order Exists (0.4ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.9ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "cart"], ["updated_at", "2015-02-15 06:09:40.818501"]]  (21.2ms) commit transaction  (0.2ms) begin transaction Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 17]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 18]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 442]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (2.5ms) INSERT INTO "spree_addresses" ("address1", "address2", "city", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "3447 Saint Dominique"], ["address2", ""], ["city", "Montreal"], ["country_id", 38], ["created_at", "2015-02-15 06:09:40.940620"], ["firstname", "Joshua"], ["lastname", "Nussbaum"], ["phone", "5145910281"], ["state_id", 434], ["updated_at", "2015-02-15 06:09:40.940620"], ["zipcode", "H2X 2X5"]] SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "city", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "3447 Saint Dominique"], ["address2", ""], ["city", "Montreal"], ["country_id", 38], ["created_at", "2015-02-15 06:09:40.946836"], ["firstname", "Joshua"], ["lastname", "Nussbaum"], ["phone", "5145910281"], ["state_id", 442], ["updated_at", "2015-02-15 06:09:40.946836"], ["zipcode", "H2X 2X5"]] SQL (1.3ms) UPDATE "spree_orders" SET "bill_address_id" = ?, "ship_address_id" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["bill_address_id", 19], ["ship_address_id", 20], ["updated_at", "2015-02-15 06:09:40.950039"]]  (20.8ms) commit transaction Spree::Shipment Exists (0.3ms) SELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? LIMIT 1 [["order_id", 6]] Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (1.6ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "address"], ["updated_at", "2015-02-15 06:09:41.000700"]]  (30.2ms) commit transaction  (0.2ms) begin transaction SQL (2.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:09:41.063581"], ["name", "order"], ["next_state", "address"], ["previous_state", "cart"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-15 06:09:41.063581"], ["user_id", 1]]  (70.1ms) commit transaction  (0.2ms) begin transaction Spree::Order Exists (0.5ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.3ms) commit transaction SQL (0.6ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 38) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 442)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::TaxRate Load (0.7ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.4ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.3ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::LineItem' AND "spree_adjustments"."adjustable_id" IN (22) AND "spree_adjustments"."source_type" = 'Spree::TaxRate'  (0.1ms) begin transaction SQL (2.1ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 75]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] SQL (1.0ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:09:41.194057' WHERE "spree_line_items"."id" = 22 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.7ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:09:41.200922' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] SQL (0.5ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:09:41.211890' WHERE "spree_line_items"."id" = 22  (28.6ms) commit transaction SQL (214.6ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 45.98 WHERE "spree_line_items"."id" = 22 Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]]  (0.2ms) begin transaction Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (3.2ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"], ["amount", 2.3], ["created_at", "2015-02-15 06:09:41.473675"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 06:09:41.473675"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.3ms) UPDATE "spree_adjustments" SET "amount" = 2.3, "updated_at" = '2015-02-15 06:09:41.502910' WHERE "spree_adjustments"."id" = 76 SQL (0.6ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.3, "adjustment_total" = 2.3, "updated_at" = '2015-02-15 06:09:41.504815' WHERE "spree_line_items"."id" = 22 SQL (0.3ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:09:41.506807' WHERE "spree_line_items"."id" = 22 SQL (0.8ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:09:41.508506' WHERE "spree_orders"."id" = 6  (20.6ms) commit transaction Spree::Shipment Exists (0.2ms) SELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? LIMIT 1 [["order_id", 6]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]]  (0.1ms) begin transaction Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]]  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.2ms) commit transaction Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]]  (0.2ms) begin transaction CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 442]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] SQL (1.2ms) UPDATE "spree_addresses" SET "state_id" = ?, "updated_at" = ? WHERE "spree_addresses"."id" = 6 [["state_id", 442], ["updated_at", "2015-02-15 06:09:41.562277"]]  (16.5ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction SQL (0.4ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."adjustable_type" = 'Spree::Shipment' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.5ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."active" = 't' Spree::StockItem Exists (0.4ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" IN (2, 2) LIMIT 1 [["stock_location_id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 2 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 2 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.5ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.6ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.4ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 2], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] CACHE (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 3], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] CACHE (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 4], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 4]] Spree::ZoneMember Load (0.5ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 5], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 5]] CACHE (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.1ms) begin transaction  (1.3ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H28102405010%') SQL (5.0ms) INSERT INTO "spree_shipments" ("address_id", "created_at", "number", "order_id", "state", "stock_location_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address_id", 20], ["created_at", "2015-02-15 06:09:41.986183"], ["number", "H28102405010"], ["order_id", 6], ["state", "pending"], ["stock_location_id", 1], ["updated_at", "2015-02-15 06:09:41.986183"]] SQL (3.7ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 5.0], ["created_at", "2015-02-15 06:09:41.997179"], ["selected", "t"], ["shipment_id", 11], ["shipping_method_id", 1], ["updated_at", "2015-02-15 06:09:41.997179"]] SQL (0.5ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost", 10.0], ["created_at", "2015-02-15 06:09:42.007631"], ["shipment_id", 11], ["shipping_method_id", 2], ["updated_at", "2015-02-15 06:09:42.007631"]] SQL (2.3ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost", 15.0], ["created_at", "2015-02-15 06:09:42.012320"], ["shipment_id", 11], ["shipping_method_id", 3], ["updated_at", "2015-02-15 06:09:42.012320"]] SQL (1.9ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:09:42.021508"], ["line_item_id", 22], ["order_id", 6], ["shipment_id", 11], ["state", "on_hand"], ["updated_at", "2015-02-15 06:09:42.021508"], ["variant_id", 2]] SQL (0.4ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-15 06:09:42.026210' WHERE "spree_shipments"."id" = 11 SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:09:42.028677' WHERE "spree_orders"."id" = 6 SQL (0.8ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:09:42.033905"], ["line_item_id", 22], ["order_id", 6], ["shipment_id", 11], ["state", "on_hand"], ["updated_at", "2015-02-15 06:09:42.033905"], ["variant_id", 2]] SQL (0.4ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-15 06:09:42.042895' WHERE "spree_shipments"."id" = 11 SQL (1.0ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:09:42.048823' WHERE "spree_orders"."id" = 6 SQL (0.4ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:09:42.056024' WHERE "spree_orders"."id" = 6  (20.8ms) commit transaction Spree::ShippingRate Load (0.5ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 11]] CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 11]] Spree::Adjustment Load (1.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 11], ["adjustable_type", "Spree::Shipment"]] SQL (16.8ms) UPDATE "spree_shipments" SET "cost" = 5.0, "adjustment_total" = 0, "updated_at" = '2015-02-15 06:09:42.105087' WHERE "spree_shipments"."id" = 11  (0.3ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (19.6ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 53.28, "updated_at" = '2015-02-15 06:09:42.128524' WHERE "spree_orders"."id" = 6  (0.1ms) begin transaction Spree::Order Exists (0.6ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (1.2ms) UPDATE "spree_orders" SET "shipment_total" = ?, "state" = ?, "total" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["shipment_total", 5.0], ["state", "delivery"], ["total", 53.28], ["updated_at", "2015-02-15 06:09:42.168837"]]  (17.8ms) commit transaction  (0.2ms) begin transaction SQL (5.8ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:09:42.199432"], ["name", "order"], ["next_state", "delivery"], ["previous_state", "address"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-15 06:09:42.199432"], ["user_id", 1]]  (26.0ms) commit transaction  (0.7ms) begin transaction Spree::Order Exists (0.6ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.3ms) commit transaction  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.2ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order')) Spree::LineItem Load (0.6ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (22) Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (16.9ms) UPDATE "spree_adjustments" SET "amount" = 2.3, "updated_at" = '2015-02-15 06:09:42.303094' WHERE "spree_adjustments"."id" = 76 SQL (15.3ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.3, "adjustment_total" = 2.3, "updated_at" = '2015-02-15 06:09:42.321589' WHERE "spree_line_items"."id" = 22  (0.2ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.2ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (15.9ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 53.28, "updated_at" = '2015-02-15 06:09:42.357193' WHERE "spree_orders"."id" = 6 Spree::ShippingRate Load (0.5ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 11]] CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 11]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 11], ["adjustable_type", "Spree::Shipment"]] SQL (61.0ms) UPDATE "spree_shipments" SET "cost" = 5.0, "adjustment_total" = 0, "updated_at" = '2015-02-15 06:09:42.382416' WHERE "spree_shipments"."id" = 11  (0.3ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (14.3ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 53.28, "updated_at" = '2015-02-15 06:09:42.447779' WHERE "spree_orders"."id" = 6 Spree::TaxRate Load (0.5ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.4ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::LineItem' AND "spree_adjustments"."adjustable_id" IN (22) AND "spree_adjustments"."source_type" = 'Spree::TaxRate'  (0.1ms) begin transaction SQL (2.3ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 76]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] SQL (0.5ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:09:42.486686' WHERE "spree_line_items"."id" = 22 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:09:42.490527' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] SQL (0.3ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:09:42.501144' WHERE "spree_line_items"."id" = 22  (14.8ms) commit transaction SQL (13.6ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 45.98 WHERE "spree_line_items"."id" = 22 Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]]  (0.1ms) begin transaction Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (2.6ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"], ["amount", 2.3], ["created_at", "2015-02-15 06:09:42.545609"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 06:09:42.545609"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.2ms) UPDATE "spree_adjustments" SET "amount" = 2.3, "updated_at" = '2015-02-15 06:09:42.568557' WHERE "spree_adjustments"."id" = 77 SQL (0.6ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.3, "adjustment_total" = 2.3, "updated_at" = '2015-02-15 06:09:42.570250' WHERE "spree_line_items"."id" = 22 SQL (0.3ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:09:42.572307' WHERE "spree_line_items"."id" = 22 SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:09:42.574038' WHERE "spree_orders"."id" = 6  (16.2ms) commit transaction Spree::TaxRate Load (0.6ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.4ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 11]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 11], ["adjustable_type", "Spree::Shipment"]]  (0.4ms) SELECT "spree_promotion_actions"."promotion_id" FROM "spree_promotion_actions" WHERE "spree_promotion_actions"."type" IN ('Spree::Promotion::Actions::FreeShipping') AND "spree_promotion_actions"."deleted_at" IS NULL Spree::Promotion Load (0.4ms) SELECT "spree_promotions".* FROM "spree_promotions" WHERE (starts_at IS NULL OR starts_at < '2015-02-15 06:09:42.622340') AND (expires_at IS NULL OR expires_at > '2015-02-15 06:09:42.622799') AND 1=0 AND "spree_promotions"."code" IS NULL AND "spree_promotions"."path" IS NULL Spree::Shipment Load (0.5ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 11]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 11], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 11], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 11], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 11], ["adjustable_type", "Spree::Shipment"]] SQL (16.6ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:09:42.642203' WHERE "spree_shipments"."id" = 11  (0.4ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (13.8ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 53.28, "updated_at" = '2015-02-15 06:09:42.664455' WHERE "spree_orders"."id" = 6  (0.1ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (1.0ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "payment"], ["updated_at", "2015-02-15 06:09:42.692221"]]  (17.2ms) commit transaction  (0.2ms) begin transaction SQL (1.7ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:09:42.717488"], ["name", "order"], ["next_state", "payment"], ["previous_state", "delivery"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-15 06:09:42.717488"], ["user_id", 1]]  (147.5ms) commit transaction  (0.2ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.2ms) commit transaction  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order')) Spree::LineItem Load (0.6ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (22) Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (14.2ms) UPDATE "spree_adjustments" SET "amount" = 2.3, "updated_at" = '2015-02-15 06:09:42.914669' WHERE "spree_adjustments"."id" = 77 SQL (18.3ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.3, "adjustment_total" = 2.3, "updated_at" = '2015-02-15 06:09:42.930711' WHERE "spree_line_items"."id" = 22  (0.2ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.4ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (15.4ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 53.28, "updated_at" = '2015-02-15 06:09:42.970185' WHERE "spree_orders"."id" = 6  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::StockLocation Load (0.4ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.6ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 11]] Spree::ShippingMethod Load (0.4ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 11]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 11]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.5ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 11]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.6ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.7ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 11]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 11], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (1557.2ms) Completed 200 OK in 4266ms (Views: 1989.8ms | ActiveRecord: 1061.1ms) Started PUT "/api/checkouts/R079133342/quick_update" for 127.0.0.1 at 2015-02-15 01:09:50 -0500 Processing by Spree::Api::CheckoutsController#quick_update as JSON Parameters: {"order"=>{"use_billing"=>"true", "coupon_code"=>"", "ship_address_attributes"=>{"firstname"=>"Joshua", "lastname"=>"Nussbaum", "address1"=>"3447 Saint Dominique", "address2"=>"", "city"=>"Montreal", "phone"=>"5145910281", "zipcode"=>"H2X 2X5", "state_id"=>"434", "country_id"=>"38"}, "bill_address_attributes"=>{"firstname"=>"Joshua", "lastname"=>"Nussbaum", "address1"=>"3447 Saint Dominique", "address2"=>"", "city"=>"Montreal", "phone"=>"5145910281", "zipcode"=>"H2X 2X5", "state_id"=>"434", "country_id"=>"38"}, "payments_attributes"=>[{"payment_method_id"=>"1"}], "shipments_attributes"=>[{"id"=>"11", "selected_shipping_rate_id"=>"40"}]}, "id"=>"R079133342"} Spree::User Load (1.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Order Load (1.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1  (1.2ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1 Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]]  (1.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::ShippingRate Load (0.5ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 11], ["id", 40]]  (0.2ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (1.0ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "cart"], ["updated_at", "2015-02-15 06:09:50.258445"]]  (14.7ms) commit transaction  (0.1ms) begin transaction SQL (1.5ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 11]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 11], ["id", 40]] SQL (0.3ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 40 [["selected", "t"], ["updated_at", "2015-02-15 06:09:50.295842"]] SQL (0.7ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:09:50.300434' WHERE "spree_orders"."id" = 6 Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 19]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 20]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (1.9ms) INSERT INTO "spree_addresses" ("address1", "address2", "city", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "3447 Saint Dominique"], ["address2", ""], ["city", "Montreal"], ["country_id", 38], ["created_at", "2015-02-15 06:09:50.333773"], ["firstname", "Joshua"], ["lastname", "Nussbaum"], ["phone", "5145910281"], ["state_id", 434], ["updated_at", "2015-02-15 06:09:50.333773"], ["zipcode", "H2X 2X5"]] SQL (1.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "city", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "3447 Saint Dominique"], ["address2", ""], ["city", "Montreal"], ["country_id", 38], ["created_at", "2015-02-15 06:09:50.338462"], ["firstname", "Joshua"], ["lastname", "Nussbaum"], ["phone", "5145910281"], ["state_id", 434], ["updated_at", "2015-02-15 06:09:50.338462"], ["zipcode", "H2X 2X5"]] SQL (0.8ms) UPDATE "spree_orders" SET "bill_address_id" = ?, "ship_address_id" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["bill_address_id", 21], ["ship_address_id", 22], ["updated_at", "2015-02-15 06:09:50.341810"]]  (21.5ms) commit transaction Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 11]] CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 11]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 11], ["adjustable_type", "Spree::Shipment"]] SQL (13.6ms) UPDATE "spree_shipments" SET "cost" = 5.0, "adjustment_total" = 0, "updated_at" = '2015-02-15 06:09:50.374049' WHERE "spree_shipments"."id" = 11  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (15.8ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 53.28, "updated_at" = '2015-02-15 06:09:50.391236' WHERE "spree_orders"."id" = 6 Spree::User Load (0.3ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.8ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "address"], ["updated_at", "2015-02-15 06:09:50.424803"]]  (14.9ms) commit transaction  (0.2ms) begin transaction SQL (1.8ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:09:50.447159"], ["name", "order"], ["next_state", "address"], ["previous_state", "cart"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-15 06:09:50.447159"], ["user_id", 1]]  (15.8ms) commit transaction  (0.1ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.2ms) commit transaction SQL (0.6ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 38) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 434)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::TaxRate Load (0.3ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.4ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::LineItem' AND "spree_adjustments"."adjustable_id" IN (22) AND "spree_adjustments"."source_type" = 'Spree::TaxRate'  (0.1ms) begin transaction SQL (2.5ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 77]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] SQL (0.5ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:09:50.514057' WHERE "spree_line_items"."id" = 22 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:09:50.518775' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] SQL (0.5ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:09:50.529214' WHERE "spree_line_items"."id" = 22  (88.8ms) commit transaction SQL (14.0ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 45.98 WHERE "spree_line_items"."id" = 22 Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]]  (0.1ms) begin transaction Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (3.6ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"], ["amount", 2.3], ["created_at", "2015-02-15 06:09:50.651352"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 06:09:50.651352"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.2ms) UPDATE "spree_adjustments" SET "amount" = 2.3, "updated_at" = '2015-02-15 06:09:50.680291' WHERE "spree_adjustments"."id" = 78 SQL (0.6ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.3, "adjustment_total" = 2.3, "updated_at" = '2015-02-15 06:09:50.682114' WHERE "spree_line_items"."id" = 22 SQL (0.4ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:09:50.684783' WHERE "spree_line_items"."id" = 22 SQL (0.7ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:09:50.687359' WHERE "spree_orders"."id" = 6  (16.2ms) commit transaction Spree::TaxRate Load (0.4ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.5ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.4ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.5ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 11]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 11], ["adjustable_type", "Spree::Shipment"]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]]  (0.1ms) begin transaction Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]]  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]]  (0.1ms) begin transaction CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] SQL (1.0ms) UPDATE "spree_addresses" SET "state_id" = ?, "updated_at" = ? WHERE "spree_addresses"."id" = 6 [["state_id", 434], ["updated_at", "2015-02-15 06:09:50.752404"]]  (13.7ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction SQL (0.2ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."adjustable_type" = 'Spree::Shipment' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 11], ["adjustable_type", "Spree::Shipment"]] SQL (2.6ms) DELETE FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 11]] SQL (2.3ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? [["shipment_id", 11]] SQL (1.6ms) DELETE FROM "spree_shipments" WHERE "spree_shipments"."id" = ? [["id", 11]] SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:09:50.790374' WHERE "spree_orders"."id" = 6  (14.6ms) commit transaction Spree::StockLocation Load (0.5ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."active" = 't' Spree::StockItem Exists (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" IN (2, 2) LIMIT 1 [["stock_location_id", 1]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 2 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 2 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.3ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.3ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 2], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] CACHE (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 3], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] CACHE (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 4], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 4]] Spree::ZoneMember Load (0.8ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 5], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 5]] CACHE (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.2ms) begin transaction  (0.3ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H45418718683%') SQL (2.2ms) INSERT INTO "spree_shipments" ("address_id", "created_at", "number", "order_id", "state", "stock_location_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address_id", 22], ["created_at", "2015-02-15 06:09:50.917028"], ["number", "H45418718683"], ["order_id", 6], ["state", "pending"], ["stock_location_id", 1], ["updated_at", "2015-02-15 06:09:50.917028"]] SQL (1.3ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 5.0], ["created_at", "2015-02-15 06:09:50.921869"], ["selected", "t"], ["shipment_id", 12], ["shipping_method_id", 1], ["updated_at", "2015-02-15 06:09:50.921869"]] SQL (0.2ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost", 10.0], ["created_at", "2015-02-15 06:09:50.925392"], ["shipment_id", 12], ["shipping_method_id", 2], ["updated_at", "2015-02-15 06:09:50.925392"]] SQL (0.9ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost", 15.0], ["created_at", "2015-02-15 06:09:50.927923"], ["shipment_id", 12], ["shipping_method_id", 3], ["updated_at", "2015-02-15 06:09:50.927923"]] SQL (1.7ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:09:50.931912"], ["line_item_id", 22], ["order_id", 6], ["shipment_id", 12], ["state", "on_hand"], ["updated_at", "2015-02-15 06:09:50.931912"], ["variant_id", 2]] SQL (0.4ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-15 06:09:50.935985' WHERE "spree_shipments"."id" = 12 SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:09:50.937780' WHERE "spree_orders"."id" = 6 SQL (0.2ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:09:50.940579"], ["line_item_id", 22], ["order_id", 6], ["shipment_id", 12], ["state", "on_hand"], ["updated_at", "2015-02-15 06:09:50.940579"], ["variant_id", 2]] SQL (0.4ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-15 06:09:50.942663' WHERE "spree_shipments"."id" = 12 SQL (0.4ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:09:50.944799' WHERE "spree_orders"."id" = 6 SQL (0.3ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:09:50.948004' WHERE "spree_orders"."id" = 6  (20.1ms) commit transaction Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 12]] CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 12]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 12], ["adjustable_type", "Spree::Shipment"]] SQL (13.7ms) UPDATE "spree_shipments" SET "cost" = 5.0, "adjustment_total" = 0, "updated_at" = '2015-02-15 06:09:50.979361' WHERE "spree_shipments"."id" = 12  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (14.0ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 53.28, "updated_at" = '2015-02-15 06:09:50.996976' WHERE "spree_orders"."id" = 6  (0.1ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.8ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "delivery"], ["updated_at", "2015-02-15 06:09:51.026708"]]  (14.2ms) commit transaction  (0.1ms) begin transaction SQL (1.7ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:09:51.048230"], ["name", "order"], ["next_state", "delivery"], ["previous_state", "address"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-15 06:09:51.048230"], ["user_id", 1]]  (14.3ms) commit transaction  (0.1ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.2ms) commit transaction  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order')) Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (22) Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (14.6ms) UPDATE "spree_adjustments" SET "amount" = 2.3, "updated_at" = '2015-02-15 06:09:51.110713' WHERE "spree_adjustments"."id" = 78 SQL (20.4ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.3, "adjustment_total" = 2.3, "updated_at" = '2015-02-15 06:09:51.127332' WHERE "spree_line_items"."id" = 22  (0.2ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (126.2ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 53.28, "updated_at" = '2015-02-15 06:09:51.168922' WHERE "spree_orders"."id" = 6  (0.2ms) begin transaction SQL (1.3ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 12]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 12], ["id", 43]] SQL (0.3ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 43 [["selected", "t"], ["updated_at", "2015-02-15 06:09:51.305078"]] SQL (0.9ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:09:51.310410' WHERE "spree_orders"."id" = 6 SQL (0.4ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:09:51.316424' WHERE "spree_orders"."id" = 6  (13.8ms) commit transaction Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 12]] CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 12]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 12], ["adjustable_type", "Spree::Shipment"]] SQL (14.7ms) UPDATE "spree_shipments" SET "cost" = 5.0, "adjustment_total" = 0, "updated_at" = '2015-02-15 06:09:51.338696' WHERE "spree_shipments"."id" = 12  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (16.0ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 53.28, "updated_at" = '2015-02-15 06:09:51.357349' WHERE "spree_orders"."id" = 6 Spree::TaxRate Load (0.4ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.4ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::LineItem' AND "spree_adjustments"."adjustable_id" IN (22) AND "spree_adjustments"."source_type" = 'Spree::TaxRate'  (0.1ms) begin transaction SQL (2.2ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 78]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] SQL (0.6ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:09:51.397755' WHERE "spree_line_items"."id" = 22 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:09:51.402048' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] SQL (0.4ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:09:51.412447' WHERE "spree_line_items"."id" = 22  (15.2ms) commit transaction SQL (16.0ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 45.98 WHERE "spree_line_items"."id" = 22 Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]]  (0.1ms) begin transaction Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (3.4ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"], ["amount", 2.3], ["created_at", "2015-02-15 06:09:51.458464"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 06:09:51.458464"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.2ms) UPDATE "spree_adjustments" SET "amount" = 2.3, "updated_at" = '2015-02-15 06:09:51.483822' WHERE "spree_adjustments"."id" = 79 SQL (0.6ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.3, "adjustment_total" = 2.3, "updated_at" = '2015-02-15 06:09:51.485565' WHERE "spree_line_items"."id" = 22 SQL (0.3ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:09:51.487528' WHERE "spree_line_items"."id" = 22 SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:09:51.489088' WHERE "spree_orders"."id" = 6  (16.1ms) commit transaction Spree::TaxRate Load (0.6ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.4ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 12]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 12], ["adjustable_type", "Spree::Shipment"]]  (0.4ms) SELECT "spree_promotion_actions"."promotion_id" FROM "spree_promotion_actions" WHERE "spree_promotion_actions"."type" IN ('Spree::Promotion::Actions::FreeShipping') AND "spree_promotion_actions"."deleted_at" IS NULL Spree::Promotion Load (0.4ms) SELECT "spree_promotions".* FROM "spree_promotions" WHERE (starts_at IS NULL OR starts_at < '2015-02-15 06:09:51.528962') AND (expires_at IS NULL OR expires_at > '2015-02-15 06:09:51.529480') AND 1=0 AND "spree_promotions"."code" IS NULL AND "spree_promotions"."path" IS NULL Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 12]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 12], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 12], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 12], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 12], ["adjustable_type", "Spree::Shipment"]] SQL (33.0ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:09:51.546317' WHERE "spree_shipments"."id" = 12  (0.3ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (14.4ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 53.28, "updated_at" = '2015-02-15 06:09:51.584220' WHERE "spree_orders"."id" = 6  (0.1ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.8ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "payment"], ["updated_at", "2015-02-15 06:09:51.612161"]]  (13.3ms) commit transaction  (0.2ms) begin transaction SQL (1.7ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:09:51.633435"], ["name", "order"], ["next_state", "payment"], ["previous_state", "delivery"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-15 06:09:51.633435"], ["user_id", 1]]  (16.6ms) commit transaction  (0.2ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.2ms) commit transaction  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order')) Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (22) Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (14.0ms) UPDATE "spree_adjustments" SET "amount" = 2.3, "updated_at" = '2015-02-15 06:09:51.701606' WHERE "spree_adjustments"."id" = 79 SQL (17.5ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.3, "adjustment_total" = 2.3, "updated_at" = '2015-02-15 06:09:51.717259' WHERE "spree_line_items"."id" = 22  (0.2ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.3ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (16.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 53.28, "updated_at" = '2015-02-15 06:09:51.756939' WHERE "spree_orders"."id" = 6  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 12]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 12]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 12]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 12]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 12]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 12]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 12]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 12]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 12], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (1490.6ms) Completed 200 OK in 3563ms (Views: 1927.2ms | ActiveRecord: 814.7ms) Started PUT "/api/checkouts/R079133342/quick_update" for 127.0.0.1 at 2015-02-15 01:10:18 -0500 Processing by Spree::Api::CheckoutsController#quick_update as JSON Parameters: {"order"=>{"use_billing"=>"true", "coupon_code"=>"", "ship_address_attributes"=>{"firstname"=>"Joshua", "lastname"=>"Nussbaum", "address1"=>"618 Eastern Pkwy", "address2"=>"", "city"=>"Brooklyn", "phone"=>"5145910281", "zipcode"=>"11213", "state_id"=>"3446", "country_id"=>"232"}, "bill_address_attributes"=>{"firstname"=>"Joshua", "lastname"=>"Nussbaum", "address1"=>"618 Eastern Pkwy", "address2"=>"", "city"=>"Brooklyn", "phone"=>"5145910281", "zipcode"=>"11213", "state_id"=>"3446", "country_id"=>"232"}, "payments_attributes"=>[{"payment_method_id"=>"1"}], "shipments_attributes"=>[{"id"=>"12", "selected_shipping_rate_id"=>"44"}]}, "id"=>"R079133342"} Spree::User Load (1.0ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Order Load (1.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1 Spree::LineItem Load (1.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]]  (1.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 12], ["id", 44]]  (0.2ms) begin transaction Spree::Order Exists (0.4ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (1.0ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "cart"], ["updated_at", "2015-02-15 06:10:18.664308"]]  (21.8ms) commit transaction  (0.2ms) begin transaction SQL (1.8ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 12]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 12], ["id", 44]] SQL (0.4ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 44 [["selected", "t"], ["updated_at", "2015-02-15 06:10:18.713350"]] SQL (0.7ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:18.719209' WHERE "spree_orders"."id" = 6 Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 21]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 22]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 3446]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 3446]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (2.1ms) INSERT INTO "spree_addresses" ("address1", "address2", "city", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "618 Eastern Pkwy"], ["address2", ""], ["city", "Brooklyn"], ["country_id", 232], ["created_at", "2015-02-15 06:10:18.756131"], ["firstname", "Joshua"], ["lastname", "Nussbaum"], ["phone", "5145910281"], ["state_id", 3446], ["updated_at", "2015-02-15 06:10:18.756131"], ["zipcode", "11213"]] SQL (0.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "city", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "618 Eastern Pkwy"], ["address2", ""], ["city", "Brooklyn"], ["country_id", 232], ["created_at", "2015-02-15 06:10:18.762070"], ["firstname", "Joshua"], ["lastname", "Nussbaum"], ["phone", "5145910281"], ["state_id", 3446], ["updated_at", "2015-02-15 06:10:18.762070"], ["zipcode", "11213"]] SQL (1.3ms) UPDATE "spree_orders" SET "bill_address_id" = ?, "ship_address_id" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["bill_address_id", 23], ["ship_address_id", 24], ["updated_at", "2015-02-15 06:10:18.766321"]]  (22.4ms) commit transaction Spree::ShippingRate Load (0.5ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 12]] CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 12]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 12], ["adjustable_type", "Spree::Shipment"]] SQL (14.6ms) UPDATE "spree_shipments" SET "cost" = 10.0, "adjustment_total" = 0, "updated_at" = '2015-02-15 06:10:18.804998' WHERE "spree_shipments"."id" = 12  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (25.5ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 10.0, "promo_total" = 0.0, "total" = 58.28, "updated_at" = '2015-02-15 06:10:18.823732' WHERE "spree_orders"."id" = 6 Spree::User Load (0.3ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) begin transaction Spree::Order Exists (0.4ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.9ms) UPDATE "spree_orders" SET "shipment_total" = ?, "state" = ?, "total" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["shipment_total", 10.0], ["state", "address"], ["total", 58.28], ["updated_at", "2015-02-15 06:10:18.868945"]]  (24.8ms) commit transaction  (0.2ms) begin transaction SQL (1.8ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:10:18.901381"], ["name", "order"], ["next_state", "address"], ["previous_state", "cart"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-15 06:10:18.901381"], ["user_id", 1]]  (47.2ms) commit transaction  (0.1ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.2ms) commit transaction SQL (0.6ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 232) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 3446)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::TaxRate Load (0.4ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.4ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.7ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::LineItem' AND "spree_adjustments"."adjustable_id" IN (22) AND "spree_adjustments"."source_type" = 'Spree::TaxRate'  (0.2ms) begin transaction SQL (3.2ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 79]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] SQL (0.5ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:10:19.004581' WHERE "spree_line_items"."id" = 22 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.8ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:19.009117' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] SQL (0.5ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:10:19.021916' WHERE "spree_line_items"."id" = 22  (20.6ms) commit transaction SQL (16.5ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 45.98 WHERE "spree_line_items"."id" = 22 Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]]  (0.2ms) begin transaction Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (3.0ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"], ["amount", 2.3], ["created_at", "2015-02-15 06:10:19.076112"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 06:10:19.076112"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.2ms) UPDATE "spree_adjustments" SET "amount" = 2.3, "updated_at" = '2015-02-15 06:10:19.103088' WHERE "spree_adjustments"."id" = 80 SQL (0.6ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.3, "adjustment_total" = 2.3, "updated_at" = '2015-02-15 06:10:19.104839' WHERE "spree_line_items"."id" = 22 SQL (0.3ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:10:19.107093' WHERE "spree_line_items"."id" = 22 SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:19.108692' WHERE "spree_orders"."id" = 6  (25.3ms) commit transaction Spree::TaxRate Load (0.4ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.5ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.7ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 12]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 12], ["adjustable_type", "Spree::Shipment"]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]]  (0.2ms) begin transaction Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 3446]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] SQL (1.6ms) UPDATE "spree_addresses" SET "address1" = ?, "city" = ?, "country_id" = ?, "state_id" = ?, "updated_at" = ?, "zipcode" = ? WHERE "spree_addresses"."id" = 5 [["address1", "618 Eastern Pkwy"], ["city", "Brooklyn"], ["country_id", 232], ["state_id", 3446], ["updated_at", "2015-02-15 06:10:19.173627"], ["zipcode", "11213"]]  (66.3ms) commit transaction  (0.2ms) begin transaction  (0.1ms) commit transaction Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]]  (0.1ms) begin transaction Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 3446]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] SQL (1.6ms) UPDATE "spree_addresses" SET "address1" = ?, "city" = ?, "country_id" = ?, "state_id" = ?, "updated_at" = ?, "zipcode" = ? WHERE "spree_addresses"."id" = 6 [["address1", "618 Eastern Pkwy"], ["city", "Brooklyn"], ["country_id", 232], ["state_id", 3446], ["updated_at", "2015-02-15 06:10:19.259517"], ["zipcode", "11213"]]  (65.3ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction SQL (0.3ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."adjustable_type" = 'Spree::Shipment' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 12], ["adjustable_type", "Spree::Shipment"]] SQL (1.8ms) DELETE FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 12]] SQL (3.1ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? [["shipment_id", 12]] SQL (1.9ms) DELETE FROM "spree_shipments" WHERE "spree_shipments"."id" = ? [["id", 12]] SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:19.351788' WHERE "spree_orders"."id" = 6  (17.2ms) commit transaction Spree::StockLocation Load (0.8ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."active" = 't' Spree::StockItem Exists (0.3ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" IN (2, 2) LIMIT 1 [["stock_location_id", 1]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 2 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 2 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.2ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 2], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] CACHE (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 3], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] CACHE (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 4], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 4]] Spree::ZoneMember Load (0.4ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 5], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 5]] CACHE (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.2ms) begin transaction  (0.3ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H85115538812%') SQL (2.2ms) INSERT INTO "spree_shipments" ("address_id", "created_at", "number", "order_id", "state", "stock_location_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address_id", 24], ["created_at", "2015-02-15 06:10:19.473353"], ["number", "H85115538812"], ["order_id", 6], ["state", "pending"], ["stock_location_id", 1], ["updated_at", "2015-02-15 06:10:19.473353"]] SQL (2.2ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 5.0], ["created_at", "2015-02-15 06:10:19.478193"], ["selected", "t"], ["shipment_id", 13], ["shipping_method_id", 1], ["updated_at", "2015-02-15 06:10:19.478193"]] SQL (0.2ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost", 10.0], ["created_at", "2015-02-15 06:10:19.483996"], ["shipment_id", 13], ["shipping_method_id", 2], ["updated_at", "2015-02-15 06:10:19.483996"]] SQL (0.8ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost", 15.0], ["created_at", "2015-02-15 06:10:19.486346"], ["shipment_id", 13], ["shipping_method_id", 3], ["updated_at", "2015-02-15 06:10:19.486346"]] SQL (1.6ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:10:19.489834"], ["line_item_id", 22], ["order_id", 6], ["shipment_id", 13], ["state", "on_hand"], ["updated_at", "2015-02-15 06:10:19.489834"], ["variant_id", 2]] SQL (0.5ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-15 06:10:19.493621' WHERE "spree_shipments"."id" = 13 SQL (0.9ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:19.496339' WHERE "spree_orders"."id" = 6 SQL (0.2ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:10:19.500689"], ["line_item_id", 22], ["order_id", 6], ["shipment_id", 13], ["state", "on_hand"], ["updated_at", "2015-02-15 06:10:19.500689"], ["variant_id", 2]] SQL (0.2ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-15 06:10:19.503147' WHERE "spree_shipments"."id" = 13 SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:19.504723' WHERE "spree_orders"."id" = 6 SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:19.506360' WHERE "spree_orders"."id" = 6  (17.5ms) commit transaction Spree::ShippingRate Load (0.4ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 13]] CACHE (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 13]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 13], ["adjustable_type", "Spree::Shipment"]] SQL (15.2ms) UPDATE "spree_shipments" SET "cost" = 5.0, "adjustment_total" = 0, "updated_at" = '2015-02-15 06:10:19.536155' WHERE "spree_shipments"."id" = 13  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (15.7ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 53.28, "updated_at" = '2015-02-15 06:10:19.554830' WHERE "spree_orders"."id" = 6  (0.1ms) begin transaction Spree::Order Exists (0.4ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.7ms) UPDATE "spree_orders" SET "shipment_total" = ?, "state" = ?, "total" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["shipment_total", 5.0], ["state", "delivery"], ["total", 53.28], ["updated_at", "2015-02-15 06:10:19.585486"]]  (19.8ms) commit transaction  (0.1ms) begin transaction SQL (1.9ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:10:19.612490"], ["name", "order"], ["next_state", "delivery"], ["previous_state", "address"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-15 06:10:19.612490"], ["user_id", 1]]  (16.7ms) commit transaction  (0.1ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.2ms) commit transaction  (0.3ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.5ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.9ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order')) Spree::LineItem Load (0.5ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (22) Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (39.4ms) UPDATE "spree_adjustments" SET "amount" = 2.3, "updated_at" = '2015-02-15 06:10:19.686062' WHERE "spree_adjustments"."id" = 80 SQL (19.6ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.3, "adjustment_total" = 2.3, "updated_at" = '2015-02-15 06:10:19.727101' WHERE "spree_line_items"."id" = 22  (0.3ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (99.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 53.28, "updated_at" = '2015-02-15 06:10:19.767688' WHERE "spree_orders"."id" = 6  (0.1ms) begin transaction SQL (1.3ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 13]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 13], ["id", 47]] SQL (0.3ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 47 [["selected", "t"], ["updated_at", "2015-02-15 06:10:19.876510"]] SQL (0.7ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:19.883614' WHERE "spree_orders"."id" = 6 SQL (0.4ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:19.888834' WHERE "spree_orders"."id" = 6  (17.4ms) commit transaction Spree::ShippingRate Load (0.5ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 13]] CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 13]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 13], ["adjustable_type", "Spree::Shipment"]] SQL (14.7ms) UPDATE "spree_shipments" SET "cost" = 10.0, "adjustment_total" = 0, "updated_at" = '2015-02-15 06:10:19.916590' WHERE "spree_shipments"."id" = 13  (0.3ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (18.3ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 10.0, "promo_total" = 0.0, "total" = 58.28, "updated_at" = '2015-02-15 06:10:19.935552' WHERE "spree_orders"."id" = 6 Spree::TaxRate Load (0.4ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.5ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.5ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.6ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::LineItem' AND "spree_adjustments"."adjustable_id" IN (22) AND "spree_adjustments"."source_type" = 'Spree::TaxRate'  (0.1ms) begin transaction SQL (2.3ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 80]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] SQL (0.5ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:10:19.980542' WHERE "spree_line_items"."id" = 22 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:19.985075' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] SQL (0.4ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:10:19.994148' WHERE "spree_line_items"."id" = 22  (23.6ms) commit transaction SQL (22.2ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 45.98 WHERE "spree_line_items"."id" = 22 Spree::Calculator Load (0.4ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]]  (0.1ms) begin transaction Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (2.5ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"], ["amount", 2.3], ["created_at", "2015-02-15 06:10:20.055790"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 06:10:20.055790"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.3ms) UPDATE "spree_adjustments" SET "amount" = 2.3, "updated_at" = '2015-02-15 06:10:20.077385' WHERE "spree_adjustments"."id" = 81 SQL (0.6ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.3, "adjustment_total" = 2.3, "updated_at" = '2015-02-15 06:10:20.079874' WHERE "spree_line_items"."id" = 22 SQL (0.3ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:10:20.082356' WHERE "spree_line_items"."id" = 22 SQL (0.7ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:20.084368' WHERE "spree_orders"."id" = 6  (147.6ms) commit transaction Spree::TaxRate Load (0.4ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.3ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.6ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 13]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 13], ["adjustable_type", "Spree::Shipment"]]  (0.2ms) SELECT "spree_promotion_actions"."promotion_id" FROM "spree_promotion_actions" WHERE "spree_promotion_actions"."type" IN ('Spree::Promotion::Actions::FreeShipping') AND "spree_promotion_actions"."deleted_at" IS NULL Spree::Promotion Load (0.4ms) SELECT "spree_promotions".* FROM "spree_promotions" WHERE (starts_at IS NULL OR starts_at < '2015-02-15 06:10:20.255175') AND (expires_at IS NULL OR expires_at > '2015-02-15 06:10:20.255545') AND 1=0 AND "spree_promotions"."code" IS NULL AND "spree_promotions"."path" IS NULL Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 13]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 13], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 13], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 13], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 13], ["adjustable_type", "Spree::Shipment"]] SQL (14.4ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:10:20.270828' WHERE "spree_shipments"."id" = 13  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (19.8ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 10.0, "promo_total" = 0.0, "total" = 58.28, "updated_at" = '2015-02-15 06:10:20.288660' WHERE "spree_orders"."id" = 6  (0.2ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.7ms) UPDATE "spree_orders" SET "shipment_total" = ?, "state" = ?, "total" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["shipment_total", 10.0], ["state", "payment"], ["total", 58.28], ["updated_at", "2015-02-15 06:10:20.324039"]]  (15.9ms) commit transaction  (0.2ms) begin transaction SQL (2.0ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:10:20.347408"], ["name", "order"], ["next_state", "payment"], ["previous_state", "delivery"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-15 06:10:20.347408"], ["user_id", 1]]  (13.8ms) commit transaction  (0.1ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.2ms) commit transaction  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.2ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order')) Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (22) Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (15.8ms) UPDATE "spree_adjustments" SET "amount" = 2.3, "updated_at" = '2015-02-15 06:10:20.412241' WHERE "spree_adjustments"."id" = 81 SQL (13.9ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.3, "adjustment_total" = 2.3, "updated_at" = '2015-02-15 06:10:20.429683' WHERE "spree_line_items"."id" = 22  (0.3ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (15.6ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 10.0, "promo_total" = 0.0, "total" = 58.28, "updated_at" = '2015-02-15 06:10:20.463827' WHERE "spree_orders"."id" = 6  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 13]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 13]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 13]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 13]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 13]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 13]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 13]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 13]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 13], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (1492.5ms) Completed 200 OK in 3892ms (Views: 1951.3ms | ActiveRecord: 1086.9ms) Started PUT "/api/checkouts/R079133342/quick_update" for 127.0.0.1 at 2015-02-15 01:10:26 -0500 Processing by Spree::Api::CheckoutsController#quick_update as JSON Parameters: {"order"=>{"use_billing"=>"true", "coupon_code"=>"", "ship_address_attributes"=>{"firstname"=>"Joshua", "lastname"=>"Nussbaum", "address1"=>"618 Eastern Pkwy", "address2"=>"", "city"=>"Brooklyn", "phone"=>"5145910281", "zipcode"=>"11215", "state_id"=>"3446", "country_id"=>"232"}, "bill_address_attributes"=>{"firstname"=>"Joshua", "lastname"=>"Nussbaum", "address1"=>"618 Eastern Pkwy", "address2"=>"", "city"=>"Brooklyn", "phone"=>"5145910281", "zipcode"=>"11215", "state_id"=>"3446", "country_id"=>"232"}, "payments_attributes"=>[{"payment_method_id"=>"1"}], "shipments_attributes"=>[{"id"=>"13", "selected_shipping_rate_id"=>"47"}]}, "id"=>"R079133342"} Spree::User Load (1.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Order Load (1.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1 Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]]  (1.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::ShippingRate Load (0.7ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 13], ["id", 47]]  (0.2ms) begin transaction Spree::Order Exists (0.5ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (1.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (1.1ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "cart"], ["updated_at", "2015-02-15 06:10:26.934467"]]  (19.5ms) commit transaction  (0.2ms) begin transaction SQL (3.0ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 13]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 13], ["id", 47]] SQL (0.3ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 47 [["selected", "t"], ["updated_at", "2015-02-15 06:10:26.992106"]] SQL (1.7ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:26.998939' WHERE "spree_orders"."id" = 6 Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 23]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 24]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 3446]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 3446]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] Spree::Order Exists (0.6ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (2.0ms) INSERT INTO "spree_addresses" ("address1", "address2", "city", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "618 Eastern Pkwy"], ["address2", ""], ["city", "Brooklyn"], ["country_id", 232], ["created_at", "2015-02-15 06:10:27.039115"], ["firstname", "Joshua"], ["lastname", "Nussbaum"], ["phone", "5145910281"], ["state_id", 3446], ["updated_at", "2015-02-15 06:10:27.039115"], ["zipcode", "11215"]] SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "city", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "618 Eastern Pkwy"], ["address2", ""], ["city", "Brooklyn"], ["country_id", 232], ["created_at", "2015-02-15 06:10:27.044171"], ["firstname", "Joshua"], ["lastname", "Nussbaum"], ["phone", "5145910281"], ["state_id", 3446], ["updated_at", "2015-02-15 06:10:27.044171"], ["zipcode", "11215"]] SQL (1.1ms) UPDATE "spree_orders" SET "bill_address_id" = ?, "ship_address_id" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["bill_address_id", 25], ["ship_address_id", 26], ["updated_at", "2015-02-15 06:10:27.047116"]]  (21.9ms) commit transaction Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 13]] CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 13]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 13], ["adjustable_type", "Spree::Shipment"]] SQL (14.1ms) UPDATE "spree_shipments" SET "cost" = 10.0, "adjustment_total" = 0, "updated_at" = '2015-02-15 06:10:27.082051' WHERE "spree_shipments"."id" = 13  (0.3ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (50.2ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 10.0, "promo_total" = 0.0, "total" = 58.28, "updated_at" = '2015-02-15 06:10:27.100997' WHERE "spree_orders"."id" = 6 Spree::User Load (0.3ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.7ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "address"], ["updated_at", "2015-02-15 06:10:27.169246"]]  (16.1ms) commit transaction  (0.1ms) begin transaction SQL (2.6ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:10:27.191239"], ["name", "order"], ["next_state", "address"], ["previous_state", "cart"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-15 06:10:27.191239"], ["user_id", 1]]  (14.8ms) commit transaction  (0.2ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.1ms) commit transaction SQL (0.8ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 232) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 3446)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::TaxRate Load (0.5ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.3ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.6ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::LineItem' AND "spree_adjustments"."adjustable_id" IN (22) AND "spree_adjustments"."source_type" = 'Spree::TaxRate'  (0.1ms) begin transaction SQL (2.1ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 81]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] SQL (0.5ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:10:27.262236' WHERE "spree_line_items"."id" = 22 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:27.266880' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] SQL (0.4ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:10:27.276374' WHERE "spree_line_items"."id" = 22  (15.8ms) commit transaction SQL (17.7ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 45.98 WHERE "spree_line_items"."id" = 22 Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]]  (0.1ms) begin transaction Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (2.7ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"], ["amount", 2.3], ["created_at", "2015-02-15 06:10:27.326134"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 06:10:27.326134"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.2ms) UPDATE "spree_adjustments" SET "amount" = 2.3, "updated_at" = '2015-02-15 06:10:27.349953' WHERE "spree_adjustments"."id" = 82 SQL (0.6ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.3, "adjustment_total" = 2.3, "updated_at" = '2015-02-15 06:10:27.351663' WHERE "spree_line_items"."id" = 22 SQL (0.3ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:10:27.353631' WHERE "spree_line_items"."id" = 22 SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:27.355286' WHERE "spree_orders"."id" = 6  (20.1ms) commit transaction Spree::TaxRate Load (0.5ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.5ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.4ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 13]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 13], ["adjustable_type", "Spree::Shipment"]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]]  (0.1ms) begin transaction Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 3446]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] SQL (1.1ms) UPDATE "spree_addresses" SET "updated_at" = ?, "zipcode" = ? WHERE "spree_addresses"."id" = 5 [["updated_at", "2015-02-15 06:10:27.408177"], ["zipcode", "11215"]]  (14.0ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]]  (0.1ms) begin transaction Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 3446]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] SQL (0.8ms) UPDATE "spree_addresses" SET "updated_at" = ?, "zipcode" = ? WHERE "spree_addresses"."id" = 6 [["updated_at", "2015-02-15 06:10:27.439299"], ["zipcode", "11215"]]  (25.8ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction SQL (0.2ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."adjustable_type" = 'Spree::Shipment' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 13], ["adjustable_type", "Spree::Shipment"]] SQL (2.2ms) DELETE FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 13]] SQL (2.4ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? [["shipment_id", 13]] SQL (1.6ms) DELETE FROM "spree_shipments" WHERE "spree_shipments"."id" = ? [["id", 13]] SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:27.487524' WHERE "spree_orders"."id" = 6  (21.8ms) commit transaction Spree::StockLocation Load (0.5ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."active" = 't' Spree::StockItem Exists (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" IN (2, 2) LIMIT 1 [["stock_location_id", 1]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 2 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 2 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.2ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 2], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] CACHE (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 3], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] CACHE (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 4], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 4]] Spree::ZoneMember Load (0.5ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 5], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 5]] CACHE (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.1ms) begin transaction  (0.3ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H65341623340%') SQL (2.2ms) INSERT INTO "spree_shipments" ("address_id", "created_at", "number", "order_id", "state", "stock_location_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address_id", 26], ["created_at", "2015-02-15 06:10:27.608621"], ["number", "H65341623340"], ["order_id", 6], ["state", "pending"], ["stock_location_id", 1], ["updated_at", "2015-02-15 06:10:27.608621"]] SQL (1.7ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 5.0], ["created_at", "2015-02-15 06:10:27.613771"], ["selected", "t"], ["shipment_id", 14], ["shipping_method_id", 1], ["updated_at", "2015-02-15 06:10:27.613771"]] SQL (0.2ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost", 10.0], ["created_at", "2015-02-15 06:10:27.618227"], ["shipment_id", 14], ["shipping_method_id", 2], ["updated_at", "2015-02-15 06:10:27.618227"]] SQL (0.8ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost", 15.0], ["created_at", "2015-02-15 06:10:27.620678"], ["shipment_id", 14], ["shipping_method_id", 3], ["updated_at", "2015-02-15 06:10:27.620678"]] SQL (1.7ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:10:27.624073"], ["line_item_id", 22], ["order_id", 6], ["shipment_id", 14], ["state", "on_hand"], ["updated_at", "2015-02-15 06:10:27.624073"], ["variant_id", 2]] SQL (0.4ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-15 06:10:27.628035' WHERE "spree_shipments"."id" = 14 SQL (0.7ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:27.630176' WHERE "spree_orders"."id" = 6 SQL (0.2ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:10:27.633692"], ["line_item_id", 22], ["order_id", 6], ["shipment_id", 14], ["state", "on_hand"], ["updated_at", "2015-02-15 06:10:27.633692"], ["variant_id", 2]] SQL (0.2ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-15 06:10:27.635888' WHERE "spree_shipments"."id" = 14 SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:27.637389' WHERE "spree_orders"."id" = 6 SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:27.639033' WHERE "spree_orders"."id" = 6  (16.7ms) commit transaction Spree::ShippingRate Load (0.4ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 14]] CACHE (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 14]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 14], ["adjustable_type", "Spree::Shipment"]] SQL (18.3ms) UPDATE "spree_shipments" SET "cost" = 5.0, "adjustment_total" = 0, "updated_at" = '2015-02-15 06:10:27.667730' WHERE "spree_shipments"."id" = 14  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (24.9ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 53.28, "updated_at" = '2015-02-15 06:10:27.689503' WHERE "spree_orders"."id" = 6  (0.2ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.7ms) UPDATE "spree_orders" SET "shipment_total" = ?, "state" = ?, "total" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["shipment_total", 5.0], ["state", "delivery"], ["total", 53.28], ["updated_at", "2015-02-15 06:10:27.729489"]]  (34.5ms) commit transaction  (0.1ms) begin transaction SQL (1.6ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:10:27.770764"], ["name", "order"], ["next_state", "delivery"], ["previous_state", "address"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-15 06:10:27.770764"], ["user_id", 1]]  (25.8ms) commit transaction  (0.1ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.2ms) commit transaction  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order')) Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (22) Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (26.9ms) UPDATE "spree_adjustments" SET "amount" = 2.3, "updated_at" = '2015-02-15 06:10:27.845407' WHERE "spree_adjustments"."id" = 82 SQL (56.6ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.3, "adjustment_total" = 2.3, "updated_at" = '2015-02-15 06:10:27.873897' WHERE "spree_line_items"."id" = 22  (0.2ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (16.9ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 53.28, "updated_at" = '2015-02-15 06:10:27.950897' WHERE "spree_orders"."id" = 6  (0.1ms) begin transaction SQL (1.4ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 14]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 14], ["id", 50]] SQL (0.3ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 50 [["selected", "t"], ["updated_at", "2015-02-15 06:10:27.978658"]] SQL (0.7ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:27.984935' WHERE "spree_orders"."id" = 6 SQL (0.3ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:27.989642' WHERE "spree_orders"."id" = 6  (14.4ms) commit transaction Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 14]] CACHE (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 14]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 14], ["adjustable_type", "Spree::Shipment"]] SQL (15.6ms) UPDATE "spree_shipments" SET "cost" = 10.0, "adjustment_total" = 0, "updated_at" = '2015-02-15 06:10:28.014342' WHERE "spree_shipments"."id" = 14  (0.3ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (14.4ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 10.0, "promo_total" = 0.0, "total" = 58.28, "updated_at" = '2015-02-15 06:10:28.033975' WHERE "spree_orders"."id" = 6 Spree::TaxRate Load (0.4ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.3ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::LineItem' AND "spree_adjustments"."adjustable_id" IN (22) AND "spree_adjustments"."source_type" = 'Spree::TaxRate'  (0.1ms) begin transaction SQL (2.2ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 82]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] SQL (0.6ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:10:28.076071' WHERE "spree_line_items"."id" = 22 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.8ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:28.081403' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] SQL (0.3ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:10:28.091306' WHERE "spree_line_items"."id" = 22  (18.8ms) commit transaction SQL (18.9ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 45.98 WHERE "spree_line_items"."id" = 22 Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]]  (0.2ms) begin transaction Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (2.7ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"], ["amount", 2.3], ["created_at", "2015-02-15 06:10:28.143157"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 06:10:28.143157"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.2ms) UPDATE "spree_adjustments" SET "amount" = 2.3, "updated_at" = '2015-02-15 06:10:28.167573' WHERE "spree_adjustments"."id" = 83 SQL (0.6ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.3, "adjustment_total" = 2.3, "updated_at" = '2015-02-15 06:10:28.169230' WHERE "spree_line_items"."id" = 22 SQL (0.3ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:10:28.171285' WHERE "spree_line_items"."id" = 22 SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:28.173131' WHERE "spree_orders"."id" = 6  (15.4ms) commit transaction Spree::TaxRate Load (0.6ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.5ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.4ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.5ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 14]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 14], ["adjustable_type", "Spree::Shipment"]]  (0.4ms) SELECT "spree_promotion_actions"."promotion_id" FROM "spree_promotion_actions" WHERE "spree_promotion_actions"."type" IN ('Spree::Promotion::Actions::FreeShipping') AND "spree_promotion_actions"."deleted_at" IS NULL Spree::Promotion Load (0.5ms) SELECT "spree_promotions".* FROM "spree_promotions" WHERE (starts_at IS NULL OR starts_at < '2015-02-15 06:10:28.216217') AND (expires_at IS NULL OR expires_at > '2015-02-15 06:10:28.216639') AND 1=0 AND "spree_promotions"."code" IS NULL AND "spree_promotions"."path" IS NULL Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 14]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 14], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 14], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 14], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 14], ["adjustable_type", "Spree::Shipment"]] SQL (18.7ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:10:28.233912' WHERE "spree_shipments"."id" = 14  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (15.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 10.0, "promo_total" = 0.0, "total" = 58.28, "updated_at" = '2015-02-15 06:10:28.256742' WHERE "spree_orders"."id" = 6  (0.1ms) begin transaction Spree::Order Exists (0.4ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.7ms) UPDATE "spree_orders" SET "shipment_total" = ?, "state" = ?, "total" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["shipment_total", 10.0], ["state", "payment"], ["total", 58.28], ["updated_at", "2015-02-15 06:10:28.286520"]]  (17.2ms) commit transaction  (0.1ms) begin transaction SQL (2.7ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:10:28.309707"], ["name", "order"], ["next_state", "payment"], ["previous_state", "delivery"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-15 06:10:28.309707"], ["user_id", 1]]  (16.6ms) commit transaction  (0.1ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.2ms) commit transaction  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.2ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order')) Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (22) Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (15.8ms) UPDATE "spree_adjustments" SET "amount" = 2.3, "updated_at" = '2015-02-15 06:10:28.375363' WHERE "spree_adjustments"."id" = 83 SQL (13.9ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.3, "adjustment_total" = 2.3, "updated_at" = '2015-02-15 06:10:28.392649' WHERE "spree_line_items"."id" = 22  (0.3ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (16.2ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 10.0, "promo_total" = 0.0, "total" = 58.28, "updated_at" = '2015-02-15 06:10:28.429980' WHERE "spree_orders"."id" = 6  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.4ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 14]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 14]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 14]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 14]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.4ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 14]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 14]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 14]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 14]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 14], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (1475.7ms) Completed 200 OK in 3544ms (Views: 1919.3ms | ActiveRecord: 802.9ms) Started PUT "/api/checkouts/R079133342/quick_update" for 127.0.0.1 at 2015-02-15 01:10:41 -0500 Processing by Spree::Api::CheckoutsController#quick_update as JSON Parameters: {"order"=>{"use_billing"=>"false", "coupon_code"=>"", "ship_address_attributes"=>{"firstname"=>"Joshua", "lastname"=>"Nussbaum", "address1"=>"618 Eastern Pkwy", "address2"=>"", "city"=>"Brooklyn", "phone"=>"5145910281", "zipcode"=>"11211", "state_id"=>"3446", "country_id"=>"232"}, "bill_address_attributes"=>{"firstname"=>"Joshua", "lastname"=>"Nussbaum", "address1"=>"618 Eastern Pkwy", "address2"=>"", "city"=>"Brooklyn", "phone"=>"5145910281", "zipcode"=>"11215", "state_id"=>"3446", "country_id"=>"232"}, "payments_attributes"=>[{"payment_method_id"=>"1"}], "shipments_attributes"=>[{"id"=>"14", "selected_shipping_rate_id"=>"50"}]}, "id"=>"R079133342"} Spree::User Load (1.0ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Order Load (1.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1 Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]]  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 14], ["id", 50]]  (0.1ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.7ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "cart"], ["updated_at", "2015-02-15 06:10:42.122153"]]  (30.0ms) commit transaction  (0.2ms) begin transaction SQL (1.4ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 14]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 14], ["id", 50]] SQL (0.1ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 50 [["selected", "t"], ["updated_at", "2015-02-15 06:10:42.172967"]] SQL (0.7ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:42.177275' WHERE "spree_orders"."id" = 6 Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 25]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 26]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 3446]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 3446]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (2.0ms) INSERT INTO "spree_addresses" ("address1", "address2", "city", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "618 Eastern Pkwy"], ["address2", ""], ["city", "Brooklyn"], ["country_id", 232], ["created_at", "2015-02-15 06:10:42.209095"], ["firstname", "Joshua"], ["lastname", "Nussbaum"], ["phone", "5145910281"], ["state_id", 3446], ["updated_at", "2015-02-15 06:10:42.209095"], ["zipcode", "11215"]] SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "city", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "618 Eastern Pkwy"], ["address2", ""], ["city", "Brooklyn"], ["country_id", 232], ["created_at", "2015-02-15 06:10:42.214866"], ["firstname", "Joshua"], ["lastname", "Nussbaum"], ["phone", "5145910281"], ["state_id", 3446], ["updated_at", "2015-02-15 06:10:42.214866"], ["zipcode", "11211"]] SQL (0.9ms) UPDATE "spree_orders" SET "bill_address_id" = ?, "ship_address_id" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["bill_address_id", 27], ["ship_address_id", 28], ["updated_at", "2015-02-15 06:10:42.217692"]]  (34.1ms) commit transaction Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 14]] CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 14]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 14], ["adjustable_type", "Spree::Shipment"]] SQL (22.5ms) UPDATE "spree_shipments" SET "cost" = 10.0, "adjustment_total" = 0, "updated_at" = '2015-02-15 06:10:42.263726' WHERE "spree_shipments"."id" = 14  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (15.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 10.0, "promo_total" = 0.0, "total" = 58.28, "updated_at" = '2015-02-15 06:10:42.289916' WHERE "spree_orders"."id" = 6 Spree::User Load (0.4ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.7ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "address"], ["updated_at", "2015-02-15 06:10:42.322321"]]  (32.2ms) commit transaction  (0.1ms) begin transaction SQL (1.9ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:10:42.361017"], ["name", "order"], ["next_state", "address"], ["previous_state", "cart"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-15 06:10:42.361017"], ["user_id", 1]]  (119.0ms) commit transaction  (0.1ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.2ms) commit transaction SQL (0.6ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 232) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 3446)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::TaxRate Load (0.4ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.5ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::LineItem' AND "spree_adjustments"."adjustable_id" IN (22) AND "spree_adjustments"."source_type" = 'Spree::TaxRate'  (0.1ms) begin transaction SQL (2.6ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 83]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] SQL (0.5ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:10:42.531770' WHERE "spree_line_items"."id" = 22 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:42.536145' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] SQL (0.4ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:10:42.546200' WHERE "spree_line_items"."id" = 22  (17.0ms) commit transaction SQL (14.8ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 45.98 WHERE "spree_line_items"."id" = 22 Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]]  (0.1ms) begin transaction Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (3.6ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"], ["amount", 2.3], ["created_at", "2015-02-15 06:10:42.594153"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 06:10:42.594153"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.2ms) UPDATE "spree_adjustments" SET "amount" = 2.3, "updated_at" = '2015-02-15 06:10:42.619800' WHERE "spree_adjustments"."id" = 84 SQL (0.6ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.3, "adjustment_total" = 2.3, "updated_at" = '2015-02-15 06:10:42.621401' WHERE "spree_line_items"."id" = 22 SQL (0.3ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:10:42.623487' WHERE "spree_line_items"."id" = 22 SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:42.625176' WHERE "spree_orders"."id" = 6  (20.3ms) commit transaction Spree::TaxRate Load (0.5ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.6ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.7ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.6ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.3ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 14]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 14], ["adjustable_type", "Spree::Shipment"]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]]  (0.1ms) begin transaction Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 3446]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]]  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]]  (0.2ms) begin transaction CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 3446]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] SQL (0.8ms) UPDATE "spree_addresses" SET "updated_at" = ?, "zipcode" = ? WHERE "spree_addresses"."id" = 6 [["updated_at", "2015-02-15 06:10:42.710295"], ["zipcode", "11211"]]  (14.7ms) commit transaction  (0.2ms) begin transaction  (0.1ms) commit transaction SQL (0.2ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."adjustable_type" = 'Spree::Shipment' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 14], ["adjustable_type", "Spree::Shipment"]] SQL (1.8ms) DELETE FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 14]] SQL (2.9ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? [["shipment_id", 14]] SQL (1.8ms) DELETE FROM "spree_shipments" WHERE "spree_shipments"."id" = ? [["id", 14]] SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:42.751530' WHERE "spree_orders"."id" = 6  (15.0ms) commit transaction Spree::StockLocation Load (0.5ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."active" = 't' Spree::StockItem Exists (0.3ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" IN (2, 2) LIMIT 1 [["stock_location_id", 1]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 2 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 2 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.3ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 2], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] CACHE (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 3], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] CACHE (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 4], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 4]] Spree::ZoneMember Load (0.8ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 5], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 5]] CACHE (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.1ms) begin transaction  (0.3ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H72712731131%') SQL (2.4ms) INSERT INTO "spree_shipments" ("address_id", "created_at", "number", "order_id", "state", "stock_location_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address_id", 28], ["created_at", "2015-02-15 06:10:42.878371"], ["number", "H72712731131"], ["order_id", 6], ["state", "pending"], ["stock_location_id", 1], ["updated_at", "2015-02-15 06:10:42.878371"]] SQL (1.3ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 5.0], ["created_at", "2015-02-15 06:10:42.883642"], ["selected", "t"], ["shipment_id", 15], ["shipping_method_id", 1], ["updated_at", "2015-02-15 06:10:42.883642"]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost", 10.0], ["created_at", "2015-02-15 06:10:42.887468"], ["shipment_id", 15], ["shipping_method_id", 2], ["updated_at", "2015-02-15 06:10:42.887468"]] SQL (0.8ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost", 15.0], ["created_at", "2015-02-15 06:10:42.889624"], ["shipment_id", 15], ["shipping_method_id", 3], ["updated_at", "2015-02-15 06:10:42.889624"]] SQL (1.7ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:10:42.893374"], ["line_item_id", 22], ["order_id", 6], ["shipment_id", 15], ["state", "on_hand"], ["updated_at", "2015-02-15 06:10:42.893374"], ["variant_id", 2]] SQL (0.4ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-15 06:10:42.897894' WHERE "spree_shipments"."id" = 15 SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:42.900148' WHERE "spree_orders"."id" = 6 SQL (0.2ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:10:42.903157"], ["line_item_id", 22], ["order_id", 6], ["shipment_id", 15], ["state", "on_hand"], ["updated_at", "2015-02-15 06:10:42.903157"], ["variant_id", 2]] SQL (0.3ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-15 06:10:42.905997' WHERE "spree_shipments"."id" = 15 SQL (0.4ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:42.908416' WHERE "spree_orders"."id" = 6 SQL (0.3ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:42.911045' WHERE "spree_orders"."id" = 6  (16.9ms) commit transaction Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 15]] CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 15]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 15], ["adjustable_type", "Spree::Shipment"]] SQL (13.5ms) UPDATE "spree_shipments" SET "cost" = 5.0, "adjustment_total" = 0, "updated_at" = '2015-02-15 06:10:42.938262' WHERE "spree_shipments"."id" = 15  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (13.6ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 53.28, "updated_at" = '2015-02-15 06:10:42.955293' WHERE "spree_orders"."id" = 6  (0.1ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.7ms) UPDATE "spree_orders" SET "shipment_total" = ?, "state" = ?, "total" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["shipment_total", 5.0], ["state", "delivery"], ["total", 53.28], ["updated_at", "2015-02-15 06:10:42.982905"]]  (18.9ms) commit transaction  (0.1ms) begin transaction SQL (1.8ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:10:43.008230"], ["name", "order"], ["next_state", "delivery"], ["previous_state", "address"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-15 06:10:43.008230"], ["user_id", 1]]  (21.0ms) commit transaction  (0.1ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.3ms) commit transaction  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order')) Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (22) Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (14.5ms) UPDATE "spree_adjustments" SET "amount" = 2.3, "updated_at" = '2015-02-15 06:10:43.079700' WHERE "spree_adjustments"."id" = 84 SQL (13.9ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.3, "adjustment_total" = 2.3, "updated_at" = '2015-02-15 06:10:43.095840' WHERE "spree_line_items"."id" = 22  (0.3ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.2ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (14.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 53.28, "updated_at" = '2015-02-15 06:10:43.134267' WHERE "spree_orders"."id" = 6  (0.1ms) begin transaction SQL (1.3ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 15]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 15], ["id", 53]] SQL (0.3ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 53 [["selected", "t"], ["updated_at", "2015-02-15 06:10:43.157835"]] SQL (0.7ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:43.164212' WHERE "spree_orders"."id" = 6 SQL (0.4ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:43.169301' WHERE "spree_orders"."id" = 6  (14.9ms) commit transaction Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 15]] CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 15]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 15], ["adjustable_type", "Spree::Shipment"]] SQL (20.7ms) UPDATE "spree_shipments" SET "cost" = 10.0, "adjustment_total" = 0, "updated_at" = '2015-02-15 06:10:43.193104' WHERE "spree_shipments"."id" = 15  (0.3ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (13.4ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 10.0, "promo_total" = 0.0, "total" = 58.28, "updated_at" = '2015-02-15 06:10:43.217951' WHERE "spree_orders"."id" = 6 Spree::TaxRate Load (0.4ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.3ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::LineItem' AND "spree_adjustments"."adjustable_id" IN (22) AND "spree_adjustments"."source_type" = 'Spree::TaxRate'  (0.1ms) begin transaction SQL (2.3ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 84]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] SQL (0.5ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:10:43.255534' WHERE "spree_line_items"."id" = 22 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.7ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:43.259610' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] SQL (0.3ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:10:43.270425' WHERE "spree_line_items"."id" = 22  (43.9ms) commit transaction SQL (23.7ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 45.98 WHERE "spree_line_items"."id" = 22 Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]]  (0.2ms) begin transaction Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (2.4ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"], ["amount", 2.3], ["created_at", "2015-02-15 06:10:43.354975"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 06:10:43.354975"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.2ms) UPDATE "spree_adjustments" SET "amount" = 2.3, "updated_at" = '2015-02-15 06:10:43.376795' WHERE "spree_adjustments"."id" = 85 SQL (0.6ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.3, "adjustment_total" = 2.3, "updated_at" = '2015-02-15 06:10:43.378764' WHERE "spree_line_items"."id" = 22 SQL (0.4ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:10:43.381415' WHERE "spree_line_items"."id" = 22 SQL (0.8ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:43.384380' WHERE "spree_orders"."id" = 6  (124.1ms) commit transaction Spree::TaxRate Load (0.5ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.4ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.4ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 15]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 15], ["adjustable_type", "Spree::Shipment"]]  (0.3ms) SELECT "spree_promotion_actions"."promotion_id" FROM "spree_promotion_actions" WHERE "spree_promotion_actions"."type" IN ('Spree::Promotion::Actions::FreeShipping') AND "spree_promotion_actions"."deleted_at" IS NULL Spree::Promotion Load (0.4ms) SELECT "spree_promotions".* FROM "spree_promotions" WHERE (starts_at IS NULL OR starts_at < '2015-02-15 06:10:43.533005') AND (expires_at IS NULL OR expires_at > '2015-02-15 06:10:43.533474') AND 1=0 AND "spree_promotions"."code" IS NULL AND "spree_promotions"."path" IS NULL Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 15]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 15], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 15], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 15], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 15], ["adjustable_type", "Spree::Shipment"]] SQL (14.4ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:10:43.547512' WHERE "spree_shipments"."id" = 15  (0.3ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (20.9ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 10.0, "promo_total" = 0.0, "total" = 58.28, "updated_at" = '2015-02-15 06:10:43.566494' WHERE "spree_orders"."id" = 6  (0.1ms) begin transaction Spree::Order Exists (0.5ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.7ms) UPDATE "spree_orders" SET "shipment_total" = ?, "state" = ?, "total" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["shipment_total", 10.0], ["state", "payment"], ["total", 58.28], ["updated_at", "2015-02-15 06:10:43.601924"]]  (17.3ms) commit transaction  (0.1ms) begin transaction SQL (2.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:10:43.625331"], ["name", "order"], ["next_state", "payment"], ["previous_state", "delivery"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-15 06:10:43.625331"], ["user_id", 1]]  (13.9ms) commit transaction  (0.2ms) begin transaction Spree::Order Exists (0.6ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.2ms) commit transaction  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.2ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order')) Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (22) Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (14.4ms) UPDATE "spree_adjustments" SET "amount" = 2.3, "updated_at" = '2015-02-15 06:10:43.694628' WHERE "spree_adjustments"."id" = 85 SQL (15.0ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.3, "adjustment_total" = 2.3, "updated_at" = '2015-02-15 06:10:43.710760' WHERE "spree_line_items"."id" = 22  (0.3ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.2ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (14.0ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 10.0, "promo_total" = 0.0, "total" = 58.28, "updated_at" = '2015-02-15 06:10:43.746859' WHERE "spree_orders"."id" = 6  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 15]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 15]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 15]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 15]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 15]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 15]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 15]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 15]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 15], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (1545.8ms) Completed 200 OK in 3714ms (Views: 1984.9ms | ActiveRecord: 926.9ms) Started PUT "/api/checkouts/R079133342/quick_update" for 127.0.0.1 at 2015-02-15 01:10:48 -0500 Processing by Spree::Api::CheckoutsController#quick_update as JSON Parameters: {"order"=>{"use_billing"=>"false", "coupon_code"=>"", "ship_address_attributes"=>{"firstname"=>"Joshua", "lastname"=>"Nussbaum", "address1"=>"618 Eastern Pkwy", "address2"=>"", "city"=>"Brooklyn", "phone"=>"5145910281", "zipcode"=>"11211", "state_id"=>"3446", "country_id"=>"232"}, "bill_address_attributes"=>{"firstname"=>"Joshua", "lastname"=>"Nussbaum", "address1"=>"618 Eastern Pkwy", "address2"=>"", "city"=>"Brooklyn", "phone"=>"5145910281", "zipcode"=>"11215", "state_id"=>"3446", "country_id"=>"232"}, "payments_attributes"=>[{"payment_method_id"=>"1"}], "shipments_attributes"=>[{"id"=>"15", "selected_shipping_rate_id"=>"54"}]}, "id"=>"R079133342"} Spree::User Load (0.8ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1  (0.7ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Order Load (1.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1 Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (1.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]]  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 15], ["id", 54]]  (0.2ms) begin transaction Spree::Order Exists (0.4ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (1.0ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "cart"], ["updated_at", "2015-02-15 06:10:49.172918"]]  (18.5ms) commit transaction  (0.2ms) begin transaction SQL (1.5ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 15]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 15], ["id", 54]] SQL (0.4ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 54 [["selected", "t"], ["updated_at", "2015-02-15 06:10:49.228913"]] SQL (0.7ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:49.235441' WHERE "spree_orders"."id" = 6 Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 27]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 28]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 3446]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 3446]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (2.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "city", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "618 Eastern Pkwy"], ["address2", ""], ["city", "Brooklyn"], ["country_id", 232], ["created_at", "2015-02-15 06:10:49.270818"], ["firstname", "Joshua"], ["lastname", "Nussbaum"], ["phone", "5145910281"], ["state_id", 3446], ["updated_at", "2015-02-15 06:10:49.270818"], ["zipcode", "11215"]] SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "city", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "618 Eastern Pkwy"], ["address2", ""], ["city", "Brooklyn"], ["country_id", 232], ["created_at", "2015-02-15 06:10:49.276061"], ["firstname", "Joshua"], ["lastname", "Nussbaum"], ["phone", "5145910281"], ["state_id", 3446], ["updated_at", "2015-02-15 06:10:49.276061"], ["zipcode", "11211"]] SQL (1.4ms) UPDATE "spree_orders" SET "bill_address_id" = ?, "ship_address_id" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["bill_address_id", 29], ["ship_address_id", 30], ["updated_at", "2015-02-15 06:10:49.279399"]]  (27.3ms) commit transaction Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 15]] CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 15]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 15], ["adjustable_type", "Spree::Shipment"]] SQL (17.8ms) UPDATE "spree_shipments" SET "cost" = 15.0, "adjustment_total" = 0, "updated_at" = '2015-02-15 06:10:49.320415' WHERE "spree_shipments"."id" = 15  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (13.8ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 15.0, "promo_total" = 0.0, "total" = 63.28, "updated_at" = '2015-02-15 06:10:49.341820' WHERE "spree_orders"."id" = 6 Spree::User Load (0.4ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.9ms) UPDATE "spree_orders" SET "shipment_total" = ?, "state" = ?, "total" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["shipment_total", 15.0], ["state", "address"], ["total", 63.28], ["updated_at", "2015-02-15 06:10:49.375261"]]  (13.9ms) commit transaction  (0.2ms) begin transaction SQL (1.9ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:10:49.396912"], ["name", "order"], ["next_state", "address"], ["previous_state", "cart"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-15 06:10:49.396912"], ["user_id", 1]]  (14.7ms) commit transaction  (0.1ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.2ms) commit transaction SQL (0.6ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 232) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 3446)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::TaxRate Load (0.4ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.4ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.5ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::LineItem' AND "spree_adjustments"."adjustable_id" IN (22) AND "spree_adjustments"."source_type" = 'Spree::TaxRate'  (0.1ms) begin transaction SQL (2.1ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 85]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] SQL (0.6ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:10:49.464176' WHERE "spree_line_items"."id" = 22 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:49.468711' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] SQL (0.3ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:10:49.478411' WHERE "spree_line_items"."id" = 22  (18.8ms) commit transaction SQL (21.7ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 45.98 WHERE "spree_line_items"."id" = 22 Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]]  (0.1ms) begin transaction Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (2.5ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"], ["amount", 2.3], ["created_at", "2015-02-15 06:10:49.535522"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 06:10:49.535522"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.2ms) UPDATE "spree_adjustments" SET "amount" = 2.3, "updated_at" = '2015-02-15 06:10:49.558162' WHERE "spree_adjustments"."id" = 86 SQL (0.7ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.3, "adjustment_total" = 2.3, "updated_at" = '2015-02-15 06:10:49.559761' WHERE "spree_line_items"."id" = 22 SQL (0.4ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:10:49.562101' WHERE "spree_line_items"."id" = 22 SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:49.564315' WHERE "spree_orders"."id" = 6  (15.9ms) commit transaction Spree::TaxRate Load (0.4ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.3ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.3ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 15]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 15], ["adjustable_type", "Spree::Shipment"]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]]  (0.1ms) begin transaction Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 3446]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]]  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]]  (0.1ms) begin transaction CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 3446]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]]  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction SQL (0.2ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."adjustable_type" = 'Spree::Shipment' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.1ms) begin transaction SQL (0.1ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 15], ["adjustable_type", "Spree::Shipment"]] SQL (5.3ms) DELETE FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 15]] SQL (3.3ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? [["shipment_id", 15]] SQL (1.7ms) DELETE FROM "spree_shipments" WHERE "spree_shipments"."id" = ? [["id", 15]] SQL (0.7ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:49.656906' WHERE "spree_orders"."id" = 6  (17.7ms) commit transaction Spree::StockLocation Load (0.6ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."active" = 't' Spree::StockItem Exists (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" IN (2, 2) LIMIT 1 [["stock_location_id", 1]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 2 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 2 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.2ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 2], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] CACHE (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.4ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 3], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] CACHE (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 4], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 4]] Spree::ZoneMember Load (0.6ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 5], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 5]] CACHE (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.2ms) begin transaction  (0.3ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H50857661814%') SQL (2.2ms) INSERT INTO "spree_shipments" ("address_id", "created_at", "number", "order_id", "state", "stock_location_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address_id", 30], ["created_at", "2015-02-15 06:10:49.782925"], ["number", "H50857661814"], ["order_id", 6], ["state", "pending"], ["stock_location_id", 1], ["updated_at", "2015-02-15 06:10:49.782925"]] SQL (1.4ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 5.0], ["created_at", "2015-02-15 06:10:49.787674"], ["selected", "t"], ["shipment_id", 16], ["shipping_method_id", 1], ["updated_at", "2015-02-15 06:10:49.787674"]] SQL (0.2ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost", 10.0], ["created_at", "2015-02-15 06:10:49.791411"], ["shipment_id", 16], ["shipping_method_id", 2], ["updated_at", "2015-02-15 06:10:49.791411"]] SQL (0.9ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost", 15.0], ["created_at", "2015-02-15 06:10:49.793863"], ["shipment_id", 16], ["shipping_method_id", 3], ["updated_at", "2015-02-15 06:10:49.793863"]] SQL (1.7ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:10:49.798054"], ["line_item_id", 22], ["order_id", 6], ["shipment_id", 16], ["state", "on_hand"], ["updated_at", "2015-02-15 06:10:49.798054"], ["variant_id", 2]] SQL (0.3ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-15 06:10:49.802025' WHERE "spree_shipments"."id" = 16 SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:49.803931' WHERE "spree_orders"."id" = 6 SQL (0.2ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:10:49.806723"], ["line_item_id", 22], ["order_id", 6], ["shipment_id", 16], ["state", "on_hand"], ["updated_at", "2015-02-15 06:10:49.806723"], ["variant_id", 2]] SQL (0.2ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-15 06:10:49.808936' WHERE "spree_shipments"."id" = 16 SQL (0.3ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:49.810749' WHERE "spree_orders"."id" = 6 SQL (0.3ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:49.812849' WHERE "spree_orders"."id" = 6  (19.2ms) commit transaction Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 16]] CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 16]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 16], ["adjustable_type", "Spree::Shipment"]] SQL (13.9ms) UPDATE "spree_shipments" SET "cost" = 5.0, "adjustment_total" = 0, "updated_at" = '2015-02-15 06:10:49.841450' WHERE "spree_shipments"."id" = 16  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (16.4ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 53.28, "updated_at" = '2015-02-15 06:10:49.858743' WHERE "spree_orders"."id" = 6  (0.2ms) begin transaction Spree::Order Exists (0.4ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.7ms) UPDATE "spree_orders" SET "shipment_total" = ?, "state" = ?, "total" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["shipment_total", 5.0], ["state", "delivery"], ["total", 53.28], ["updated_at", "2015-02-15 06:10:49.889547"]]  (114.6ms) commit transaction  (0.1ms) begin transaction SQL (1.8ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:10:50.011114"], ["name", "order"], ["next_state", "delivery"], ["previous_state", "address"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-15 06:10:50.011114"], ["user_id", 1]]  (16.5ms) commit transaction  (0.1ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.2ms) commit transaction  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.2ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order')) Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (22) Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (15.7ms) UPDATE "spree_adjustments" SET "amount" = 2.3, "updated_at" = '2015-02-15 06:10:50.073902' WHERE "spree_adjustments"."id" = 86 SQL (13.6ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.3, "adjustment_total" = 2.3, "updated_at" = '2015-02-15 06:10:50.091138' WHERE "spree_line_items"."id" = 22  (0.2ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.2ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (14.2ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 53.28, "updated_at" = '2015-02-15 06:10:50.129151' WHERE "spree_orders"."id" = 6  (0.2ms) begin transaction SQL (1.4ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 16]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 16], ["id", 57]] SQL (0.3ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 57 [["selected", "t"], ["updated_at", "2015-02-15 06:10:50.153768"]] SQL (0.7ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:50.159116' WHERE "spree_orders"."id" = 6 SQL (0.4ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:50.164844' WHERE "spree_orders"."id" = 6  (19.1ms) commit transaction Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 16]] CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 16]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 16], ["adjustable_type", "Spree::Shipment"]] SQL (14.5ms) UPDATE "spree_shipments" SET "cost" = 15.0, "adjustment_total" = 0, "updated_at" = '2015-02-15 06:10:50.192773' WHERE "spree_shipments"."id" = 16  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (22.4ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 15.0, "promo_total" = 0.0, "total" = 63.28, "updated_at" = '2015-02-15 06:10:50.210901' WHERE "spree_orders"."id" = 6 Spree::TaxRate Load (0.4ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.4ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::LineItem' AND "spree_adjustments"."adjustable_id" IN (22) AND "spree_adjustments"."source_type" = 'Spree::TaxRate'  (0.1ms) begin transaction SQL (2.9ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 86]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] SQL (0.5ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:10:50.259128' WHERE "spree_line_items"."id" = 22 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.7ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:50.264351' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] SQL (0.5ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:10:50.275628' WHERE "spree_line_items"."id" = 22  (17.8ms) commit transaction SQL (14.5ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 45.98 WHERE "spree_line_items"."id" = 22 Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]]  (0.1ms) begin transaction Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (3.1ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"], ["amount", 2.3], ["created_at", "2015-02-15 06:10:50.324126"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 06:10:50.324126"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.2ms) UPDATE "spree_adjustments" SET "amount" = 2.3, "updated_at" = '2015-02-15 06:10:50.345997' WHERE "spree_adjustments"."id" = 87 SQL (0.6ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.3, "adjustment_total" = 2.3, "updated_at" = '2015-02-15 06:10:50.347780' WHERE "spree_line_items"."id" = 22 SQL (0.3ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:10:50.350192' WHERE "spree_line_items"."id" = 22 SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:10:50.351870' WHERE "spree_orders"."id" = 6  (77.7ms) commit transaction Spree::TaxRate Load (0.4ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.3ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.7ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 16]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 16], ["adjustable_type", "Spree::Shipment"]]  (0.3ms) SELECT "spree_promotion_actions"."promotion_id" FROM "spree_promotion_actions" WHERE "spree_promotion_actions"."type" IN ('Spree::Promotion::Actions::FreeShipping') AND "spree_promotion_actions"."deleted_at" IS NULL Spree::Promotion Load (0.6ms) SELECT "spree_promotions".* FROM "spree_promotions" WHERE (starts_at IS NULL OR starts_at < '2015-02-15 06:10:50.451707') AND (expires_at IS NULL OR expires_at > '2015-02-15 06:10:50.452076') AND 1=0 AND "spree_promotions"."code" IS NULL AND "spree_promotions"."path" IS NULL Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 16]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 16], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 16], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 16], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 16], ["adjustable_type", "Spree::Shipment"]] SQL (21.6ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:10:50.468462' WHERE "spree_shipments"."id" = 16  (0.3ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (46.3ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 15.0, "promo_total" = 0.0, "total" = 63.28, "updated_at" = '2015-02-15 06:10:50.494289' WHERE "spree_orders"."id" = 6  (0.2ms) begin transaction Spree::Order Exists (0.4ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.7ms) UPDATE "spree_orders" SET "shipment_total" = ?, "state" = ?, "total" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["shipment_total", 15.0], ["state", "payment"], ["total", 63.28], ["updated_at", "2015-02-15 06:10:50.556229"]]  (44.7ms) commit transaction  (0.2ms) begin transaction SQL (5.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:10:50.610187"], ["name", "order"], ["next_state", "payment"], ["previous_state", "delivery"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-15 06:10:50.610187"], ["user_id", 1]]  (53.6ms) commit transaction  (0.3ms) begin transaction Spree::Order Exists (1.4ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (1.2ms) commit transaction  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.2ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order')) Spree::LineItem Load (1.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (22) Spree::Adjustment Load (1.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (16.9ms) UPDATE "spree_adjustments" SET "amount" = 2.3, "updated_at" = '2015-02-15 06:10:50.766451' WHERE "spree_adjustments"."id" = 87 SQL (20.7ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.3, "adjustment_total" = 2.3, "updated_at" = '2015-02-15 06:10:50.785150' WHERE "spree_line_items"."id" = 22  (0.2ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.3ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (13.9ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 15.0, "promo_total" = 0.0, "total" = 63.28, "updated_at" = '2015-02-15 06:10:50.826821' WHERE "spree_orders"."id" = 6  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 16]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 16]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 16]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 16]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 16]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 16]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 16]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 16]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 16], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.4ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (1633.9ms) Completed 200 OK in 3957ms (Views: 2152.2ms | ActiveRecord: 917.3ms) Started GET "/assets/checkout/confirm.html" for 127.0.0.1 at 2015-02-15 01:10:53 -0500 Started GET "/api/cart.json" for 127.0.0.1 at 2015-02-15 01:10:53 -0500 Processing by Sprangular::CartsController#show as JSON Spree::User Load (1.0ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 29]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 30]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 3446]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 3446]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.3ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 16]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 16]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 16]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 16]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.4ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 16]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 16]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 16]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.3ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.3ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 16]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 16], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (1476.0ms) Completed 200 OK in 1548ms (Views: 1492.4ms | ActiveRecord: 19.2ms) Started GET "/assets/credit_cards/credit_card.html" for 127.0.0.1 at 2015-02-15 01:10:55 -0500 Started GET "/assets/addresses/address.html" for 127.0.0.1 at 2015-02-15 01:10:55 -0500 Started GET "/api/cart.json" for 127.0.0.1 at 2015-02-15 01:11:44 -0500 Processing by Sprangular::CartsController#show as JSON Spree::User Load (0.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (1.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (1.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 29]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 30]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 3446]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 3446]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 16]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 16]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 16]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 16]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 16]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 16]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 16]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 16]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 16], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (1419.7ms) Completed 200 OK in 1514ms (Views: 1439.9ms | ActiveRecord: 20.0ms) Started PUT "/api/checkouts/R079133342/quick_update" for 127.0.0.1 at 2015-02-15 01:11:48 -0500 Processing by Spree::Api::CheckoutsController#quick_update as JSON Parameters: {"order"=>{"use_billing"=>"true", "coupon_code"=>"", "ship_address_attributes"=>{"firstname"=>"Joshua", "lastname"=>"Nussbaum", "address1"=>"618 Eastern Pkwy", "address2"=>"", "city"=>"Brooklyn", "phone"=>"5145910281", "zipcode"=>"11215", "state_id"=>"3446", "country_id"=>"232"}, "bill_address_attributes"=>{"firstname"=>"Joshua", "lastname"=>"Nussbaum", "address1"=>"618 Eastern Pkwy", "address2"=>"", "city"=>"Brooklyn", "phone"=>"5145910281", "zipcode"=>"11215", "state_id"=>"3446", "country_id"=>"232"}, "payments_attributes"=>[{"payment_method_id"=>"1"}], "shipments_attributes"=>[{"id"=>"16", "selected_shipping_rate_id"=>"57"}]}, "id"=>"R079133342"} Spree::User Load (2.3ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Order Load (2.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1  (1.2ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Order Load (1.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1 Spree::LineItem Load (1.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]]  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 16], ["id", 57]]  (0.1ms) begin transaction Spree::Order Exists (0.4ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.8ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "cart"], ["updated_at", "2015-02-15 06:11:49.183447"]]  (26.7ms) commit transaction  (0.2ms) begin transaction SQL (1.4ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 16]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 16], ["id", 57]] SQL (0.2ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 57 [["selected", "t"], ["updated_at", "2015-02-15 06:11:49.236198"]] SQL (0.9ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:11:49.240866' WHERE "spree_orders"."id" = 6 Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 29]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 30]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 3446]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 3446]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (2.0ms) INSERT INTO "spree_addresses" ("address1", "address2", "city", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "618 Eastern Pkwy"], ["address2", ""], ["city", "Brooklyn"], ["country_id", 232], ["created_at", "2015-02-15 06:11:49.272973"], ["firstname", "Joshua"], ["lastname", "Nussbaum"], ["phone", "5145910281"], ["state_id", 3446], ["updated_at", "2015-02-15 06:11:49.272973"], ["zipcode", "11215"]] SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "city", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "618 Eastern Pkwy"], ["address2", ""], ["city", "Brooklyn"], ["country_id", 232], ["created_at", "2015-02-15 06:11:49.277919"], ["firstname", "Joshua"], ["lastname", "Nussbaum"], ["phone", "5145910281"], ["state_id", 3446], ["updated_at", "2015-02-15 06:11:49.277919"], ["zipcode", "11215"]] SQL (1.0ms) UPDATE "spree_orders" SET "bill_address_id" = ?, "ship_address_id" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["bill_address_id", 31], ["ship_address_id", 32], ["updated_at", "2015-02-15 06:11:49.280895"]]  (19.9ms) commit transaction Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 16]] CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 16]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 16], ["adjustable_type", "Spree::Shipment"]] SQL (16.0ms) UPDATE "spree_shipments" SET "cost" = 15.0, "adjustment_total" = 0, "updated_at" = '2015-02-15 06:11:49.312626' WHERE "spree_shipments"."id" = 16  (0.3ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (14.6ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 15.0, "promo_total" = 0.0, "total" = 63.28, "updated_at" = '2015-02-15 06:11:49.332491' WHERE "spree_orders"."id" = 6 Spree::User Load (0.3ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.7ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "address"], ["updated_at", "2015-02-15 06:11:49.364598"]]  (13.3ms) commit transaction  (0.1ms) begin transaction SQL (1.7ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:11:49.384550"], ["name", "order"], ["next_state", "address"], ["previous_state", "cart"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-15 06:11:49.384550"], ["user_id", 1]]  (14.1ms) commit transaction  (0.1ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.2ms) commit transaction SQL (0.6ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 232) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 3446)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::TaxRate Load (0.3ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.4ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::LineItem' AND "spree_adjustments"."adjustable_id" IN (22) AND "spree_adjustments"."source_type" = 'Spree::TaxRate'  (0.1ms) begin transaction SQL (2.3ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 87]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] SQL (0.6ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:11:49.448453' WHERE "spree_line_items"."id" = 22 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:11:49.452864' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] SQL (0.5ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:11:49.462537' WHERE "spree_line_items"."id" = 22  (17.4ms) commit transaction SQL (19.1ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 45.98 WHERE "spree_line_items"."id" = 22 Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]]  (0.2ms) begin transaction Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (2.5ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"], ["amount", 2.3], ["created_at", "2015-02-15 06:11:49.515891"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 06:11:49.515891"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.3ms) UPDATE "spree_adjustments" SET "amount" = 2.3, "updated_at" = '2015-02-15 06:11:49.541631' WHERE "spree_adjustments"."id" = 88 SQL (0.6ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.3, "adjustment_total" = 2.3, "updated_at" = '2015-02-15 06:11:49.543768' WHERE "spree_line_items"."id" = 22 SQL (0.4ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:11:49.546353' WHERE "spree_line_items"."id" = 22 SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:11:49.548438' WHERE "spree_orders"."id" = 6  (71.9ms) commit transaction Spree::TaxRate Load (0.4ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.5ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.4ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 16]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 16], ["adjustable_type", "Spree::Shipment"]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]]  (0.2ms) begin transaction Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 3446]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]]  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.2ms) commit transaction Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]]  (0.2ms) begin transaction CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 3446]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] SQL (0.7ms) UPDATE "spree_addresses" SET "updated_at" = ?, "zipcode" = ? WHERE "spree_addresses"."id" = 6 [["updated_at", "2015-02-15 06:11:49.673568"], ["zipcode", "11215"]]  (13.6ms) commit transaction  (0.2ms) begin transaction  (0.2ms) commit transaction SQL (0.3ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."adjustable_type" = 'Spree::Shipment' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.2ms) begin transaction SQL (0.2ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 16], ["adjustable_type", "Spree::Shipment"]] SQL (1.9ms) DELETE FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 16]] SQL (2.9ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? [["shipment_id", 16]] SQL (1.7ms) DELETE FROM "spree_shipments" WHERE "spree_shipments"."id" = ? [["id", 16]] SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:11:49.714232' WHERE "spree_orders"."id" = 6  (17.0ms) commit transaction Spree::StockLocation Load (0.5ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."active" = 't' Spree::StockItem Exists (0.3ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" IN (2, 2) LIMIT 1 [["stock_location_id", 1]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 2 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 2 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.2ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 2], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] CACHE (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.4ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 3], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] CACHE (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 4], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 4]] Spree::ZoneMember Load (0.4ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 5], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 5]] CACHE (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.2ms) begin transaction  (0.3ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H71826410368%') SQL (2.2ms) INSERT INTO "spree_shipments" ("address_id", "created_at", "number", "order_id", "state", "stock_location_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address_id", 32], ["created_at", "2015-02-15 06:11:49.834941"], ["number", "H71826410368"], ["order_id", 6], ["state", "pending"], ["stock_location_id", 1], ["updated_at", "2015-02-15 06:11:49.834941"]] SQL (1.3ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 5.0], ["created_at", "2015-02-15 06:11:49.839624"], ["selected", "t"], ["shipment_id", 17], ["shipping_method_id", 1], ["updated_at", "2015-02-15 06:11:49.839624"]] SQL (0.2ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost", 10.0], ["created_at", "2015-02-15 06:11:49.843526"], ["shipment_id", 17], ["shipping_method_id", 2], ["updated_at", "2015-02-15 06:11:49.843526"]] SQL (0.9ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost", 15.0], ["created_at", "2015-02-15 06:11:49.846325"], ["shipment_id", 17], ["shipping_method_id", 3], ["updated_at", "2015-02-15 06:11:49.846325"]] SQL (1.6ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:11:49.850449"], ["line_item_id", 22], ["order_id", 6], ["shipment_id", 17], ["state", "on_hand"], ["updated_at", "2015-02-15 06:11:49.850449"], ["variant_id", 2]] SQL (0.3ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-15 06:11:49.854348' WHERE "spree_shipments"."id" = 17 SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:11:49.856062' WHERE "spree_orders"."id" = 6 SQL (0.3ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:11:49.858662"], ["line_item_id", 22], ["order_id", 6], ["shipment_id", 17], ["state", "on_hand"], ["updated_at", "2015-02-15 06:11:49.858662"], ["variant_id", 2]] SQL (0.3ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-15 06:11:49.862152' WHERE "spree_shipments"."id" = 17 SQL (0.3ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:11:49.864023' WHERE "spree_orders"."id" = 6 SQL (0.3ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:11:49.865973' WHERE "spree_orders"."id" = 6  (17.8ms) commit transaction Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 17]] CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 17]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 17], ["adjustable_type", "Spree::Shipment"]] SQL (18.7ms) UPDATE "spree_shipments" SET "cost" = 5.0, "adjustment_total" = 0, "updated_at" = '2015-02-15 06:11:49.893015' WHERE "spree_shipments"."id" = 17  (0.3ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (17.5ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 53.28, "updated_at" = '2015-02-15 06:11:49.916270' WHERE "spree_orders"."id" = 6  (0.1ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.7ms) UPDATE "spree_orders" SET "shipment_total" = ?, "state" = ?, "total" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["shipment_total", 5.0], ["state", "delivery"], ["total", 53.28], ["updated_at", "2015-02-15 06:11:49.949430"]]  (14.4ms) commit transaction  (0.1ms) begin transaction SQL (1.7ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:11:49.970263"], ["name", "order"], ["next_state", "delivery"], ["previous_state", "address"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-15 06:11:49.970263"], ["user_id", 1]]  (16.6ms) commit transaction  (0.1ms) begin transaction Spree::Order Exists (0.5ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.1ms) commit transaction  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order')) Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (22) Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.3ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (88.0ms) UPDATE "spree_adjustments" SET "amount" = 2.3, "updated_at" = '2015-02-15 06:11:50.037076' WHERE "spree_adjustments"."id" = 88 SQL (83.9ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.3, "adjustment_total" = 2.3, "updated_at" = '2015-02-15 06:11:50.126698' WHERE "spree_line_items"."id" = 22  (0.2ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.2ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (16.5ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 53.28, "updated_at" = '2015-02-15 06:11:50.235576' WHERE "spree_orders"."id" = 6  (0.1ms) begin transaction SQL (1.9ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 17]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 17], ["id", 60]] SQL (0.4ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 60 [["selected", "t"], ["updated_at", "2015-02-15 06:11:50.264293"]] SQL (0.7ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:11:50.271910' WHERE "spree_orders"."id" = 6 SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:11:50.278123' WHERE "spree_orders"."id" = 6  (16.9ms) commit transaction Spree::ShippingRate Load (0.4ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 17]] CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 17]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 17], ["adjustable_type", "Spree::Shipment"]] SQL (18.7ms) UPDATE "spree_shipments" SET "cost" = 15.0, "adjustment_total" = 0, "updated_at" = '2015-02-15 06:11:50.306352' WHERE "spree_shipments"."id" = 17  (0.4ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (17.3ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 15.0, "promo_total" = 0.0, "total" = 63.28, "updated_at" = '2015-02-15 06:11:50.331826' WHERE "spree_orders"."id" = 6 Spree::TaxRate Load (0.4ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.3ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.5ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::LineItem' AND "spree_adjustments"."adjustable_id" IN (22) AND "spree_adjustments"."source_type" = 'Spree::TaxRate'  (0.1ms) begin transaction SQL (2.1ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 88]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] SQL (0.6ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:11:50.376253' WHERE "spree_line_items"."id" = 22 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.9ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:11:50.381520' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] SQL (0.3ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:11:50.392149' WHERE "spree_line_items"."id" = 22  (17.1ms) commit transaction SQL (17.4ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 45.98 WHERE "spree_line_items"."id" = 22 Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]]  (0.1ms) begin transaction Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (2.6ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"], ["amount", 2.3], ["created_at", "2015-02-15 06:11:50.442055"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 06:11:50.442055"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.2ms) UPDATE "spree_adjustments" SET "amount" = 2.3, "updated_at" = '2015-02-15 06:11:50.467151' WHERE "spree_adjustments"."id" = 89 SQL (0.6ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.3, "adjustment_total" = 2.3, "updated_at" = '2015-02-15 06:11:50.468849' WHERE "spree_line_items"."id" = 22 SQL (0.3ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:11:50.470954' WHERE "spree_line_items"."id" = 22 SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:11:50.472550' WHERE "spree_orders"."id" = 6  (48.3ms) commit transaction Spree::TaxRate Load (0.4ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.4ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.5ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 17]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 17], ["adjustable_type", "Spree::Shipment"]]  (0.3ms) SELECT "spree_promotion_actions"."promotion_id" FROM "spree_promotion_actions" WHERE "spree_promotion_actions"."type" IN ('Spree::Promotion::Actions::FreeShipping') AND "spree_promotion_actions"."deleted_at" IS NULL Spree::Promotion Load (0.6ms) SELECT "spree_promotions".* FROM "spree_promotions" WHERE (starts_at IS NULL OR starts_at < '2015-02-15 06:11:50.545738') AND (expires_at IS NULL OR expires_at > '2015-02-15 06:11:50.546292') AND 1=0 AND "spree_promotions"."code" IS NULL AND "spree_promotions"."path" IS NULL Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 17]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 17], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 17], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 17], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 17], ["adjustable_type", "Spree::Shipment"]] SQL (14.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:11:50.563664' WHERE "spree_shipments"."id" = 17  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (84.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 15.0, "promo_total" = 0.0, "total" = 63.28, "updated_at" = '2015-02-15 06:11:50.581644' WHERE "spree_orders"."id" = 6  (0.1ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.7ms) UPDATE "spree_orders" SET "shipment_total" = ?, "state" = ?, "total" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["shipment_total", 15.0], ["state", "payment"], ["total", 63.28], ["updated_at", "2015-02-15 06:11:50.681356"]]  (14.7ms) commit transaction  (0.1ms) begin transaction SQL (1.9ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:11:50.703442"], ["name", "order"], ["next_state", "payment"], ["previous_state", "delivery"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-15 06:11:50.703442"], ["user_id", 1]]  (14.2ms) commit transaction  (0.1ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.2ms) commit transaction  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order')) Spree::LineItem Load (0.8ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (22) Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.3ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (14.1ms) UPDATE "spree_adjustments" SET "amount" = 2.3, "updated_at" = '2015-02-15 06:11:50.770686' WHERE "spree_adjustments"."id" = 89 SQL (20.6ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 2.3, "adjustment_total" = 2.3, "updated_at" = '2015-02-15 06:11:50.786332' WHERE "spree_line_items"."id" = 22  (0.3ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (21.4ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 45.98, "item_count" = 2, "adjustment_total" = 2.3, "included_tax_total" = 0.0, "additional_tax_total" = 2.3, "payment_total" = 0.0, "shipment_total" = 15.0, "promo_total" = 0.0, "total" = 63.28, "updated_at" = '2015-02-15 06:11:50.827960' WHERE "spree_orders"."id" = 6  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::StockLocation Load (0.3ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 17]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 17]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 17]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 17]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 17]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 17], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (1523.4ms) Completed 200 OK in 3760ms (Views: 1964.4ms | ActiveRecord: 955.8ms) Started DELETE "/api/cart" for 127.0.0.1 at 2015-02-15 01:11:57 -0500 Processing by Sprangular::CartsController#destroy as JSON Spree::User Load (1.9ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]]  (0.2ms) begin transaction Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] SQL (2.2ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 89]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 22]] SQL (0.5ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:11:58.132065' WHERE "spree_line_items"."id" = 22 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:11:58.136055' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 22], ["adjustable_type", "Spree::LineItem"]] SQL (0.5ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:11:58.146574' WHERE "spree_line_items"."id" = 22 Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."line_item_id" = ? [["line_item_id", 22]] SQL (1.6ms) DELETE FROM "spree_inventory_units" WHERE "spree_inventory_units"."id" = ? [["id", 40]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 17]] SQL (0.5ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-15 06:11:58.156917' WHERE "spree_shipments"."id" = 17 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.4ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:11:58.161413' WHERE "spree_orders"."id" = 6 SQL (0.1ms) DELETE FROM "spree_inventory_units" WHERE "spree_inventory_units"."id" = ? [["id", 41]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 17]] SQL (0.2ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-15 06:11:58.168083' WHERE "spree_shipments"."id" = 17 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:11:58.171590' WHERE "spree_orders"."id" = 6 SQL (1.1ms) DELETE FROM "spree_line_items" WHERE "spree_line_items"."id" = ? [["id", 22]] SQL (0.3ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:11:58.175527' WHERE "spree_orders"."id" = 6  (22.2ms) commit transaction  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) begin transaction SQL (0.2ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 17], ["adjustable_type", "Spree::Shipment"]] SQL (0.1ms) DELETE FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 17]] SQL (2.5ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? [["shipment_id", 17]] SQL (1.7ms) DELETE FROM "spree_shipments" WHERE "spree_shipments"."id" = ? [["id", 17]] SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:11:58.218429' WHERE "spree_orders"."id" = 6  (15.3ms) commit transaction  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order'))  (0.1ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (13.7ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 0.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 0.0, "updated_at" = '2015-02-15 06:11:58.263303' WHERE "spree_orders"."id" = 6  (0.2ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.8ms) UPDATE "spree_orders" SET "additional_tax_total" = ?, "adjustment_total" = ?, "item_count" = ?, "item_total" = ?, "shipment_total" = ?, "state" = ?, "total" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["additional_tax_total", 0.0], ["adjustment_total", 0.0], ["item_count", 0], ["item_total", 0.0], ["shipment_total", 0.0], ["state", "cart"], ["total", 0.0], ["updated_at", "2015-02-15 06:11:58.288445"]]  (15.5ms) commit transaction  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 31]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 32]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 3446]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 3446]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (311.2ms) Completed 200 OK in 555ms (Views: 329.8ms | ActiveRecord: 93.3ms) Started GET "/api/products?page=1&per_page=12" for 127.0.0.1 at 2015-02-15 01:12:03 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12"} Spree::User Load (1.4ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (2.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.7ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (1.0ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 06:12:03.561458') AND ("spree_products".available_on <= '2015-02-15 06:12:03.564583') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0) subquery_for_count  (1.1ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 06:12:03.561458') AND ("spree_products".available_on <= '2015-02-15 06:12:03.564583') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (1.9ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 06:12:03.561458') AND ("spree_products".available_on <= '2015-02-15 06:12:03.564583') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.7ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::OptionType Load (0.7ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (1.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (1.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Image Load (1.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.6ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Price Load (1.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::ProductProperty Load (2.6ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY spree_product_properties.position Spree::Property Load (0.6ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (1.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_variants".position ASC Spree::Image Load (1.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.5ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.6ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.6ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 9]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 9]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 9]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 11]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 11]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 11]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 12]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 12]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 12]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (6240.2ms) Completed 200 OK in 6331ms (Views: 6212.8ms | ActiveRecord: 59.3ms) Started POST "/api/cart/add_variant" for 127.0.0.1 at 2015-02-15 01:12:15 -0500 Processing by Sprangular::CartsController#add_variant as JSON Parameters: {"variant_id"=>"2", "quantity"=>"1"} Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.1ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" = ? [["variant_id", 2]]  (0.1ms) begin transaction Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (2.0ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 21.0], ["created_at", "2015-02-15 06:12:16.099950"], ["currency", "USD"], ["order_id", 6], ["price", 22.99], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2015-02-15 06:12:16.099950"], ["variant_id", 2]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 32]] SQL (0.8ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 232) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 3446)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::TaxRate Load (0.3ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.3ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::LineItem' AND "spree_adjustments"."adjustable_id" IN (23) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' SQL (0.4ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 22.99 WHERE "spree_line_items"."id" = 23 Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (2.1ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"], ["amount", 1.15], ["created_at", "2015-02-15 06:12:16.141831"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 06:12:16.141831"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 23]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.2ms) UPDATE "spree_adjustments" SET "amount" = 1.15, "updated_at" = '2015-02-15 06:12:16.165838' WHERE "spree_adjustments"."id" = 90 SQL (0.2ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.15, "adjustment_total" = 1.15, "updated_at" = '2015-02-15 06:12:16.167880' WHERE "spree_line_items"."id" = 23 SQL (0.2ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:12:16.169509' WHERE "spree_line_items"."id" = 23 SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:12:16.171009' WHERE "spree_orders"."id" = 6 SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:12:16.173199' WHERE "spree_orders"."id" = 6 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::TaxRate Load (0.3ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.3ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::LineItem' AND "spree_adjustments"."adjustable_id" IN (23) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' SQL (0.2ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 90]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 23]] SQL (0.3ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:12:16.203331' WHERE "spree_line_items"."id" = 23 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.3ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:12:16.207314' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] SQL (0.3ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:12:16.218068' WHERE "spree_line_items"."id" = 23 SQL (0.3ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 22.99 WHERE "spree_line_items"."id" = 23 Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.4ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"], ["amount", 1.15], ["created_at", "2015-02-15 06:12:16.239488"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 06:12:16.239488"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.7ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.3ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 23]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (1.3ms) UPDATE "spree_adjustments" SET "amount" = 1.15, "updated_at" = '2015-02-15 06:12:16.282479' WHERE "spree_adjustments"."id" = 91 SQL (0.3ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.15, "adjustment_total" = 1.15, "updated_at" = '2015-02-15 06:12:16.288196' WHERE "spree_line_items"."id" = 23 SQL (0.3ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:12:16.293006' WHERE "spree_line_items"."id" = 23 SQL (0.4ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:12:16.295457' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 23]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.2ms) UPDATE "spree_adjustments" SET "amount" = 1.15, "updated_at" = '2015-02-15 06:12:16.320518' WHERE "spree_adjustments"."id" = 91 SQL (0.2ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.15, "adjustment_total" = 1.15, "updated_at" = '2015-02-15 06:12:16.322384' WHERE "spree_line_items"."id" = 23  (24.1ms) commit transaction  (0.4ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.1ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order')) Spree::LineItem Load (0.5ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (23) Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 23]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (16.0ms) UPDATE "spree_adjustments" SET "amount" = 1.15, "updated_at" = '2015-02-15 06:12:16.387029' WHERE "spree_adjustments"."id" = 91 SQL (18.0ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.15, "adjustment_total" = 1.15, "updated_at" = '2015-02-15 06:12:16.404695' WHERE "spree_line_items"."id" = 23  (0.3ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.2ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (14.0ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 22.99, "item_count" = 1, "adjustment_total" = 1.15, "included_tax_total" = 0.0, "additional_tax_total" = 1.15, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 24.14, "updated_at" = '2015-02-15 06:12:16.444932' WHERE "spree_orders"."id" = 6 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::Shipment Exists (0.2ms) SELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? LIMIT 1 [["order_id", 6]] Spree::Promotion Load (0.5ms) SELECT DISTINCT "spree_promotions".* FROM "spree_promotions" LEFT OUTER JOIN "spree_orders_promotions" ON "spree_promotions"."id" = "spree_orders_promotions"."promotion_id" WHERE (starts_at IS NULL OR starts_at < '2015-02-15 06:12:16.467666') AND (expires_at IS NULL OR expires_at > '2015-02-15 06:12:16.468055') AND (("spree_promotions"."code" IS NULL AND "spree_promotions"."path" IS NULL OR "spree_orders_promotions"."order_id" = 6)) Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 23]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (14.2ms) UPDATE "spree_adjustments" SET "amount" = 1.15, "updated_at" = '2015-02-15 06:12:16.489560' WHERE "spree_adjustments"."id" = 91 SQL (13.7ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.15, "adjustment_total" = 1.15, "updated_at" = '2015-02-15 06:12:16.505458' WHERE "spree_line_items"."id" = 23  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.2ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order')) Spree::LineItem Load (0.6ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (23) Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 23]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (18.3ms) UPDATE "spree_adjustments" SET "amount" = 1.15, "updated_at" = '2015-02-15 06:12:16.557508' WHERE "spree_adjustments"."id" = 91 SQL (14.8ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.15, "adjustment_total" = 1.15, "updated_at" = '2015-02-15 06:12:16.577777' WHERE "spree_line_items"."id" = 23  (0.3ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (128.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 22.99, "item_count" = 1, "adjustment_total" = 1.15, "included_tax_total" = 0.0, "additional_tax_total" = 1.15, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 24.14, "updated_at" = '2015-02-15 06:12:16.616826' WHERE "spree_orders"."id" = 6 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::Shipment Exists (0.1ms) SELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? LIMIT 1 [["order_id", 6]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 31]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 32]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 3446]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 3446]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (1.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.5ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 23]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (1.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.8ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.9ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.9ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (1144.1ms) Completed 200 OK in 1864ms (Views: 1150.0ms | ActiveRecord: 316.2ms) Started PUT "/api/checkouts/R079133342/quick_update" for 127.0.0.1 at 2015-02-15 01:12:19 -0500 Processing by Spree::Api::CheckoutsController#quick_update as JSON Parameters: {"order"=>{"use_billing"=>"true", "coupon_code"=>"", "ship_address_attributes"=>{"firstname"=>"Joshua", "lastname"=>"Nussbaum", "address1"=>"618 Eastern Pkwy", "address2"=>"", "city"=>"Brooklyn", "phone"=>"5145910281", "zipcode"=>"11215", "state_id"=>"3446", "country_id"=>"232"}, "bill_address_attributes"=>{"firstname"=>"Joshua", "lastname"=>"Nussbaum", "address1"=>"618 Eastern Pkwy", "address2"=>"", "city"=>"Brooklyn", "phone"=>"5145910281", "zipcode"=>"11215", "state_id"=>"3446", "country_id"=>"232"}, "payments_attributes"=>[{"payment_method_id"=>"1"}]}, "id"=>"R079133342"} Spree::User Load (1.5ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Order Load (1.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Order Load (2.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1 Spree::LineItem Load (0.8ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]]  (0.7ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]]  (0.2ms) begin transaction Spree::Order Exists (1.2ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.8ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "cart"], ["updated_at", "2015-02-15 06:12:19.566055"]]  (16.2ms) commit transaction  (0.2ms) begin transaction Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 31]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 32]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 3446]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 3446]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (2.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "city", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "618 Eastern Pkwy"], ["address2", ""], ["city", "Brooklyn"], ["country_id", 232], ["created_at", "2015-02-15 06:12:19.633730"], ["firstname", "Joshua"], ["lastname", "Nussbaum"], ["phone", "5145910281"], ["state_id", 3446], ["updated_at", "2015-02-15 06:12:19.633730"], ["zipcode", "11215"]] SQL (0.2ms) INSERT INTO "spree_addresses" ("address1", "address2", "city", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "618 Eastern Pkwy"], ["address2", ""], ["city", "Brooklyn"], ["country_id", 232], ["created_at", "2015-02-15 06:12:19.639824"], ["firstname", "Joshua"], ["lastname", "Nussbaum"], ["phone", "5145910281"], ["state_id", 3446], ["updated_at", "2015-02-15 06:12:19.639824"], ["zipcode", "11215"]] SQL (1.7ms) UPDATE "spree_orders" SET "bill_address_id" = ?, "ship_address_id" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["bill_address_id", 33], ["ship_address_id", 34], ["updated_at", "2015-02-15 06:12:19.642464"]]  (22.7ms) commit transaction Spree::Shipment Exists (0.2ms) SELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? LIMIT 1 [["order_id", 6]] Spree::User Load (0.3ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Spree::Order Exists (0.4ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.8ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "address"], ["updated_at", "2015-02-15 06:12:19.692218"]]  (29.8ms) commit transaction  (0.2ms) begin transaction SQL (2.4ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:12:19.729548"], ["name", "order"], ["next_state", "address"], ["previous_state", "cart"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-15 06:12:19.729548"], ["user_id", 1]]  (92.8ms) commit transaction  (0.2ms) begin transaction Spree::Order Exists (0.4ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.2ms) commit transaction SQL (1.1ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 232) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 3446)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::TaxRate Load (0.4ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.5ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.8ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::LineItem' AND "spree_adjustments"."adjustable_id" IN (23) AND "spree_adjustments"."source_type" = 'Spree::TaxRate'  (0.1ms) begin transaction SQL (2.3ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 91]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 23]] SQL (0.6ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:12:19.885994' WHERE "spree_line_items"."id" = 23 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.7ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:12:19.890810' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] SQL (0.4ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:12:19.903983' WHERE "spree_line_items"."id" = 23  (16.2ms) commit transaction SQL (16.6ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 22.99 WHERE "spree_line_items"."id" = 23 Spree::Calculator Load (0.4ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]]  (0.2ms) begin transaction Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (3.7ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"], ["amount", 1.15], ["created_at", "2015-02-15 06:12:19.957329"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 06:12:19.957329"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 23]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.2ms) UPDATE "spree_adjustments" SET "amount" = 1.15, "updated_at" = '2015-02-15 06:12:19.986576' WHERE "spree_adjustments"."id" = 92 SQL (0.6ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.15, "adjustment_total" = 1.15, "updated_at" = '2015-02-15 06:12:19.988213' WHERE "spree_line_items"."id" = 23 SQL (0.3ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:12:19.990200' WHERE "spree_line_items"."id" = 23 SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:12:19.991908' WHERE "spree_orders"."id" = 6  (35.6ms) commit transaction Spree::Shipment Exists (0.4ms) SELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? LIMIT 1 [["order_id", 6]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]]  (0.2ms) begin transaction Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 3446]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]]  (0.3ms) commit transaction  (0.2ms) begin transaction  (0.1ms) commit transaction Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]]  (0.1ms) begin transaction CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 3446]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]]  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction SQL (0.2ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."adjustable_type" = 'Spree::Shipment' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.5ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."active" = 't' Spree::StockItem Exists (0.4ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" IN (2) LIMIT 1 [["stock_location_id", 1]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 2 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 2 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.2ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 2], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] CACHE (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 3], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] CACHE (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 4], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 4]] Spree::ZoneMember Load (0.5ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 5], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 5]] CACHE (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.2ms) begin transaction  (0.3ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H20645737747%') SQL (2.3ms) INSERT INTO "spree_shipments" ("address_id", "created_at", "number", "order_id", "state", "stock_location_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address_id", 34], ["created_at", "2015-02-15 06:12:20.191693"], ["number", "H20645737747"], ["order_id", 6], ["state", "pending"], ["stock_location_id", 1], ["updated_at", "2015-02-15 06:12:20.191693"]] SQL (1.4ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 5.0], ["created_at", "2015-02-15 06:12:20.196714"], ["selected", "t"], ["shipment_id", 18], ["shipping_method_id", 1], ["updated_at", "2015-02-15 06:12:20.196714"]] SQL (0.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost", 10.0], ["created_at", "2015-02-15 06:12:20.200690"], ["shipment_id", 18], ["shipping_method_id", 2], ["updated_at", "2015-02-15 06:12:20.200690"]] SQL (0.8ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost", 15.0], ["created_at", "2015-02-15 06:12:20.202823"], ["shipment_id", 18], ["shipping_method_id", 3], ["updated_at", "2015-02-15 06:12:20.202823"]] SQL (1.6ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:12:20.206296"], ["line_item_id", 23], ["order_id", 6], ["shipment_id", 18], ["state", "on_hand"], ["updated_at", "2015-02-15 06:12:20.206296"], ["variant_id", 2]] SQL (0.4ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-15 06:12:20.210037' WHERE "spree_shipments"."id" = 18 SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:12:20.212073' WHERE "spree_orders"."id" = 6 SQL (0.3ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:12:20.214276' WHERE "spree_orders"."id" = 6  (18.3ms) commit transaction Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 18]] CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 18]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 18], ["adjustable_type", "Spree::Shipment"]] SQL (15.2ms) UPDATE "spree_shipments" SET "cost" = 5.0, "adjustment_total" = 0, "updated_at" = '2015-02-15 06:12:20.241443' WHERE "spree_shipments"."id" = 18  (0.3ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (14.0ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 22.99, "item_count" = 1, "adjustment_total" = 1.15, "included_tax_total" = 0.0, "additional_tax_total" = 1.15, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 29.14, "updated_at" = '2015-02-15 06:12:20.260850' WHERE "spree_orders"."id" = 6  (0.2ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.7ms) UPDATE "spree_orders" SET "shipment_total" = ?, "state" = ?, "total" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["shipment_total", 5.0], ["state", "delivery"], ["total", 29.14], ["updated_at", "2015-02-15 06:12:20.288885"]]  (12.9ms) commit transaction  (0.1ms) begin transaction SQL (1.8ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:12:20.308095"], ["name", "order"], ["next_state", "delivery"], ["previous_state", "address"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-15 06:12:20.308095"], ["user_id", 1]]  (15.8ms) commit transaction  (0.2ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.1ms) commit transaction  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.2ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order')) Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (23) Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 23]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (14.7ms) UPDATE "spree_adjustments" SET "amount" = 1.15, "updated_at" = '2015-02-15 06:12:20.373997' WHERE "spree_adjustments"."id" = 92 SQL (13.4ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.15, "adjustment_total" = 1.15, "updated_at" = '2015-02-15 06:12:20.390369' WHERE "spree_line_items"."id" = 23  (0.2ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.2ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (14.6ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 22.99, "item_count" = 1, "adjustment_total" = 1.15, "included_tax_total" = 0.0, "additional_tax_total" = 1.15, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 29.14, "updated_at" = '2015-02-15 06:12:20.423408' WHERE "spree_orders"."id" = 6 Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 18]] CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 18]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 18], ["adjustable_type", "Spree::Shipment"]] SQL (15.6ms) UPDATE "spree_shipments" SET "cost" = 5.0, "adjustment_total" = 0, "updated_at" = '2015-02-15 06:12:20.447131' WHERE "spree_shipments"."id" = 18  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (14.2ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 22.99, "item_count" = 1, "adjustment_total" = 1.15, "included_tax_total" = 0.0, "additional_tax_total" = 1.15, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 29.14, "updated_at" = '2015-02-15 06:12:20.466327' WHERE "spree_orders"."id" = 6 Spree::TaxRate Load (0.4ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.3ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::LineItem' AND "spree_adjustments"."adjustable_id" IN (23) AND "spree_adjustments"."source_type" = 'Spree::TaxRate'  (0.1ms) begin transaction SQL (2.1ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 92]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 23]] SQL (0.5ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:12:20.504485' WHERE "spree_line_items"."id" = 23 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.8ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:12:20.508282' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] SQL (0.3ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:12:20.518741' WHERE "spree_line_items"."id" = 23  (17.3ms) commit transaction SQL (13.6ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 22.99 WHERE "spree_line_items"."id" = 23 Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]]  (0.2ms) begin transaction Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (2.4ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"], ["amount", 1.15], ["created_at", "2015-02-15 06:12:20.566188"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 06:12:20.566188"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 23]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.2ms) UPDATE "spree_adjustments" SET "amount" = 1.15, "updated_at" = '2015-02-15 06:12:20.588960' WHERE "spree_adjustments"."id" = 93 SQL (0.6ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.15, "adjustment_total" = 1.15, "updated_at" = '2015-02-15 06:12:20.590655' WHERE "spree_line_items"."id" = 23 SQL (0.5ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:12:20.592721' WHERE "spree_line_items"."id" = 23 SQL (0.8ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:12:20.595440' WHERE "spree_orders"."id" = 6  (15.3ms) commit transaction Spree::TaxRate Load (0.4ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.3ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 18]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 18], ["adjustable_type", "Spree::Shipment"]]  (0.2ms) SELECT "spree_promotion_actions"."promotion_id" FROM "spree_promotion_actions" WHERE "spree_promotion_actions"."type" IN ('Spree::Promotion::Actions::FreeShipping') AND "spree_promotion_actions"."deleted_at" IS NULL Spree::Promotion Load (0.4ms) SELECT "spree_promotions".* FROM "spree_promotions" WHERE (starts_at IS NULL OR starts_at < '2015-02-15 06:12:20.634032') AND (expires_at IS NULL OR expires_at > '2015-02-15 06:12:20.634509') AND 1=0 AND "spree_promotions"."code" IS NULL AND "spree_promotions"."path" IS NULL Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 18]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 18], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 18], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 18], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 18], ["adjustable_type", "Spree::Shipment"]] SQL (14.4ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:12:20.650390' WHERE "spree_shipments"."id" = 18  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (16.9ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 22.99, "item_count" = 1, "adjustment_total" = 1.15, "included_tax_total" = 0.0, "additional_tax_total" = 1.15, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 29.14, "updated_at" = '2015-02-15 06:12:20.669391' WHERE "spree_orders"."id" = 6  (0.1ms) begin transaction Spree::Order Exists (0.5ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.8ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "payment"], ["updated_at", "2015-02-15 06:12:20.703954"]]  (17.1ms) commit transaction  (0.1ms) begin transaction SQL (1.9ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:12:20.728056"], ["name", "order"], ["next_state", "payment"], ["previous_state", "delivery"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-15 06:12:20.728056"], ["user_id", 1]]  (16.2ms) commit transaction  (0.1ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.2ms) commit transaction  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.2ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order')) Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (23) Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 23]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (33.4ms) UPDATE "spree_adjustments" SET "amount" = 1.15, "updated_at" = '2015-02-15 06:12:20.793344' WHERE "spree_adjustments"."id" = 93 SQL (18.8ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.15, "adjustment_total" = 1.15, "updated_at" = '2015-02-15 06:12:20.828913' WHERE "spree_line_items"."id" = 23  (0.2ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (16.2ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 22.99, "item_count" = 1, "adjustment_total" = 1.15, "included_tax_total" = 0.0, "additional_tax_total" = 1.15, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 29.14, "updated_at" = '2015-02-15 06:12:20.869138' WHERE "spree_orders"."id" = 6  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 23]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 18]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 18]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 18]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 18]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 23]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (1434.1ms) Completed 200 OK in 3308ms (Views: 1869.7ms | ActiveRecord: 659.2ms) Started GET "/api/cart.json" for 127.0.0.1 at 2015-02-15 01:12:22 -0500 Processing by Sprangular::CartsController#show as JSON Spree::User Load (0.9ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 33]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 34]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 3446]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 3446]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 23]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 18]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 18]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 18]] CACHE (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.4ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 18]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 18]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 23]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (1453.8ms) Completed 200 OK in 1518ms (Views: 1469.7ms | ActiveRecord: 17.7ms) Started GET "/api/cart.json" for 127.0.0.1 at 2015-02-15 01:12:27 -0500 Processing by Sprangular::CartsController#show as JSON Spree::User Load (0.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (1.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 33]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 34]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 3446]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 3446]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 232]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 23]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 18]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 18]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 18]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 18]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 18]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 18]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 23]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (1386.8ms) Completed 200 OK in 1438ms (Views: 1392.8ms | ActiveRecord: 18.4ms) Started PUT "/api/checkouts/R079133342/quick_update" for 127.0.0.1 at 2015-02-15 01:12:34 -0500 Processing by Spree::Api::CheckoutsController#quick_update as JSON Parameters: {"order"=>{"use_billing"=>"true", "coupon_code"=>"", "ship_address_attributes"=>{"firstname"=>"Joshua", "lastname"=>"Nussbaum", "address1"=>"3447 Saint Dominique", "address2"=>"", "city"=>"Montreal", "phone"=>"5145910281", "zipcode"=>"H2X 2X5", "state_id"=>"434", "country_id"=>"38"}, "bill_address_attributes"=>{"firstname"=>"Joshua", "lastname"=>"Nussbaum", "address1"=>"3447 Saint Dominique", "address2"=>"", "city"=>"Montreal", "phone"=>"5145910281", "zipcode"=>"H2X 2X5", "state_id"=>"434", "country_id"=>"38"}, "payments_attributes"=>[{"payment_method_id"=>"1"}], "shipments_attributes"=>[{"id"=>"18", "selected_shipping_rate_id"=>"61"}]}, "id"=>"R079133342"} Spree::User Load (1.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Order Load (1.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Order Load (2.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1 Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 18], ["id", 61]]  (0.1ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.8ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "cart"], ["updated_at", "2015-02-15 06:12:34.347943"]]  (19.2ms) commit transaction  (0.2ms) begin transaction SQL (1.4ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 18]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 18], ["id", 61]] SQL (0.2ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 61 [["selected", "t"], ["updated_at", "2015-02-15 06:12:34.388284"]] SQL (0.9ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:12:34.391954' WHERE "spree_orders"."id" = 6 Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 33]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 34]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (2.3ms) INSERT INTO "spree_addresses" ("address1", "address2", "city", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "3447 Saint Dominique"], ["address2", ""], ["city", "Montreal"], ["country_id", 38], ["created_at", "2015-02-15 06:12:34.423946"], ["firstname", "Joshua"], ["lastname", "Nussbaum"], ["phone", "5145910281"], ["state_id", 434], ["updated_at", "2015-02-15 06:12:34.423946"], ["zipcode", "H2X 2X5"]] SQL (1.0ms) INSERT INTO "spree_addresses" ("address1", "address2", "city", "country_id", "created_at", "firstname", "lastname", "phone", "state_id", "updated_at", "zipcode") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address1", "3447 Saint Dominique"], ["address2", ""], ["city", "Montreal"], ["country_id", 38], ["created_at", "2015-02-15 06:12:34.429304"], ["firstname", "Joshua"], ["lastname", "Nussbaum"], ["phone", "5145910281"], ["state_id", 434], ["updated_at", "2015-02-15 06:12:34.429304"], ["zipcode", "H2X 2X5"]] SQL (0.9ms) UPDATE "spree_orders" SET "bill_address_id" = ?, "ship_address_id" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["bill_address_id", 35], ["ship_address_id", 36], ["updated_at", "2015-02-15 06:12:34.432801"]]  (20.4ms) commit transaction Spree::ShippingRate Load (0.4ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 18]] CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 18]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 18], ["adjustable_type", "Spree::Shipment"]] SQL (17.4ms) UPDATE "spree_shipments" SET "cost" = 5.0, "adjustment_total" = 0, "updated_at" = '2015-02-15 06:12:34.465487' WHERE "spree_shipments"."id" = 18  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (13.9ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 22.99, "item_count" = 1, "adjustment_total" = 1.15, "included_tax_total" = 0.0, "additional_tax_total" = 1.15, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 29.14, "updated_at" = '2015-02-15 06:12:34.486446' WHERE "spree_orders"."id" = 6 Spree::User Load (0.3ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.7ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "address"], ["updated_at", "2015-02-15 06:12:34.517730"]]  (16.5ms) commit transaction  (0.1ms) begin transaction SQL (2.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:12:34.540413"], ["name", "order"], ["next_state", "address"], ["previous_state", "cart"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-15 06:12:34.540413"], ["user_id", 1]]  (13.6ms) commit transaction  (0.2ms) begin transaction Spree::Order Exists (0.4ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.1ms) commit transaction SQL (0.9ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 38) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 434)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::TaxRate Load (0.4ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.4ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::LineItem' AND "spree_adjustments"."adjustable_id" IN (23) AND "spree_adjustments"."source_type" = 'Spree::TaxRate'  (0.1ms) begin transaction SQL (2.1ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 93]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 23]] SQL (0.5ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:12:34.606215' WHERE "spree_line_items"."id" = 23 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.9ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:12:34.611257' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] SQL (0.3ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:12:34.622086' WHERE "spree_line_items"."id" = 23  (30.9ms) commit transaction SQL (48.8ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 22.99 WHERE "spree_line_items"."id" = 23 Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]]  (0.2ms) begin transaction Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (2.4ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"], ["amount", 1.15], ["created_at", "2015-02-15 06:12:34.719857"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 06:12:34.719857"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 23]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.4ms) UPDATE "spree_adjustments" SET "amount" = 1.15, "updated_at" = '2015-02-15 06:12:34.743671' WHERE "spree_adjustments"."id" = 94 SQL (0.9ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.15, "adjustment_total" = 1.15, "updated_at" = '2015-02-15 06:12:34.745792' WHERE "spree_line_items"."id" = 23 SQL (0.3ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:12:34.749242' WHERE "spree_line_items"."id" = 23 SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:12:34.751272' WHERE "spree_orders"."id" = 6  (114.7ms) commit transaction Spree::TaxRate Load (0.4ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.4ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.5ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 18]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 18], ["adjustable_type", "Spree::Shipment"]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]]  (0.2ms) begin transaction Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] SQL (1.2ms) UPDATE "spree_addresses" SET "address1" = ?, "city" = ?, "country_id" = ?, "state_id" = ?, "updated_at" = ?, "zipcode" = ? WHERE "spree_addresses"."id" = 5 [["address1", "3447 Saint Dominique"], ["city", "Montreal"], ["country_id", 38], ["state_id", 434], ["updated_at", "2015-02-15 06:12:34.901916"], ["zipcode", "H2X 2X5"]]  (14.6ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]]  (0.2ms) begin transaction Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] SQL (1.2ms) UPDATE "spree_addresses" SET "address1" = ?, "city" = ?, "country_id" = ?, "state_id" = ?, "updated_at" = ?, "zipcode" = ? WHERE "spree_addresses"."id" = 6 [["address1", "3447 Saint Dominique"], ["city", "Montreal"], ["country_id", 38], ["state_id", 434], ["updated_at", "2015-02-15 06:12:34.934867"], ["zipcode", "H2X 2X5"]]  (14.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction SQL (0.3ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."adjustable_type" = 'Spree::Shipment' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.2ms) begin transaction SQL (0.3ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 18], ["adjustable_type", "Spree::Shipment"]] SQL (2.1ms) DELETE FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 18]] SQL (2.4ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? [["shipment_id", 18]] SQL (1.5ms) DELETE FROM "spree_shipments" WHERE "spree_shipments"."id" = ? [["id", 18]] SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:12:34.974758' WHERE "spree_orders"."id" = 6  (15.0ms) commit transaction Spree::StockLocation Load (0.8ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."active" = 't' Spree::StockItem Exists (0.3ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" IN (2) LIMIT 1 [["stock_location_id", 1]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 2 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 2 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.3ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.2ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 2], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] CACHE (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 3], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] CACHE (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 4], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 4]] Spree::ZoneMember Load (0.6ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 5], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 5]] CACHE (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.1ms) begin transaction  (0.4ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H43558716338%') SQL (2.2ms) INSERT INTO "spree_shipments" ("address_id", "created_at", "number", "order_id", "state", "stock_location_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address_id", 36], ["created_at", "2015-02-15 06:12:35.129800"], ["number", "H43558716338"], ["order_id", 6], ["state", "pending"], ["stock_location_id", 1], ["updated_at", "2015-02-15 06:12:35.129800"]] SQL (1.3ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 5.0], ["created_at", "2015-02-15 06:12:35.135008"], ["selected", "t"], ["shipment_id", 19], ["shipping_method_id", 1], ["updated_at", "2015-02-15 06:12:35.135008"]] SQL (0.2ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost", 10.0], ["created_at", "2015-02-15 06:12:35.138618"], ["shipment_id", 19], ["shipping_method_id", 2], ["updated_at", "2015-02-15 06:12:35.138618"]] SQL (1.1ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost", 15.0], ["created_at", "2015-02-15 06:12:35.140865"], ["shipment_id", 19], ["shipping_method_id", 3], ["updated_at", "2015-02-15 06:12:35.140865"]] SQL (1.7ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:12:35.145719"], ["line_item_id", 23], ["order_id", 6], ["shipment_id", 19], ["state", "on_hand"], ["updated_at", "2015-02-15 06:12:35.145719"], ["variant_id", 2]] SQL (0.3ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-15 06:12:35.149786' WHERE "spree_shipments"."id" = 19 SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:12:35.151647' WHERE "spree_orders"."id" = 6 SQL (0.3ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:12:35.153993' WHERE "spree_orders"."id" = 6  (17.5ms) commit transaction Spree::ShippingRate Load (0.4ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 19]] CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 19]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 19], ["adjustable_type", "Spree::Shipment"]] SQL (15.7ms) UPDATE "spree_shipments" SET "cost" = 5.0, "adjustment_total" = 0, "updated_at" = '2015-02-15 06:12:35.184520' WHERE "spree_shipments"."id" = 19  (0.3ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (18.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 22.99, "item_count" = 1, "adjustment_total" = 1.15, "included_tax_total" = 0.0, "additional_tax_total" = 1.15, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 29.14, "updated_at" = '2015-02-15 06:12:35.205306' WHERE "spree_orders"."id" = 6  (0.2ms) begin transaction Spree::Order Exists (0.5ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.8ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "delivery"], ["updated_at", "2015-02-15 06:12:35.246821"]]  (13.4ms) commit transaction  (0.2ms) begin transaction SQL (1.9ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:12:35.269453"], ["name", "order"], ["next_state", "delivery"], ["previous_state", "address"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-15 06:12:35.269453"], ["user_id", 1]]  (14.5ms) commit transaction  (0.1ms) begin transaction Spree::Order Exists (0.4ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.2ms) commit transaction  (0.3ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.3ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.8ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order')) Spree::LineItem Load (0.5ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (23) Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 23]] Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (27.2ms) UPDATE "spree_adjustments" SET "amount" = 1.15, "updated_at" = '2015-02-15 06:12:35.347353' WHERE "spree_adjustments"."id" = 94 SQL (16.3ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.15, "adjustment_total" = 1.15, "updated_at" = '2015-02-15 06:12:35.376932' WHERE "spree_line_items"."id" = 23  (0.3ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.4ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.3ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (39.1ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 22.99, "item_count" = 1, "adjustment_total" = 1.15, "included_tax_total" = 0.0, "additional_tax_total" = 1.15, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 29.14, "updated_at" = '2015-02-15 06:12:35.425513' WHERE "spree_orders"."id" = 6  (0.2ms) begin transaction SQL (1.5ms) UPDATE "spree_shipping_rates" SET "selected" = 'f' WHERE "spree_shipping_rates"."id" IN (SELECT "spree_shipping_rates"."id" FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC) [["shipment_id", 19]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."id" = ? ORDER BY cost ASC LIMIT 1 [["shipment_id", 19], ["id", 64]] SQL (0.6ms) UPDATE "spree_shipping_rates" SET "selected" = ?, "updated_at" = ? WHERE "spree_shipping_rates"."id" = 64 [["selected", "t"], ["updated_at", "2015-02-15 06:12:35.477615"]] SQL (1.0ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:12:35.487203' WHERE "spree_orders"."id" = 6 SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:12:35.495087' WHERE "spree_orders"."id" = 6  (145.4ms) commit transaction Spree::ShippingRate Load (0.5ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 19]] CACHE (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 19]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 19], ["adjustable_type", "Spree::Shipment"]] SQL (19.5ms) UPDATE "spree_shipments" SET "cost" = 5.0, "adjustment_total" = 0, "updated_at" = '2015-02-15 06:12:35.654924' WHERE "spree_shipments"."id" = 19  (0.4ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (15.3ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 22.99, "item_count" = 1, "adjustment_total" = 1.15, "included_tax_total" = 0.0, "additional_tax_total" = 1.15, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 29.14, "updated_at" = '2015-02-15 06:12:35.679614' WHERE "spree_orders"."id" = 6 Spree::TaxRate Load (0.6ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.6ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.5ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.3ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.7ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::LineItem' AND "spree_adjustments"."adjustable_id" IN (23) AND "spree_adjustments"."source_type" = 'Spree::TaxRate'  (0.2ms) begin transaction SQL (2.5ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 94]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 23]] SQL (0.7ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:12:35.730335' WHERE "spree_line_items"."id" = 23 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (1.0ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:12:35.736561' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] SQL (0.5ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:12:35.752834' WHERE "spree_line_items"."id" = 23  (19.5ms) commit transaction SQL (18.1ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 22.99 WHERE "spree_line_items"."id" = 23 Spree::Calculator Load (0.4ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]]  (0.1ms) begin transaction Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (3.2ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"], ["amount", 1.15], ["created_at", "2015-02-15 06:12:35.812923"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 06:12:35.812923"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 23]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.3ms) UPDATE "spree_adjustments" SET "amount" = 1.15, "updated_at" = '2015-02-15 06:12:35.847991' WHERE "spree_adjustments"."id" = 95 SQL (1.0ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.15, "adjustment_total" = 1.15, "updated_at" = '2015-02-15 06:12:35.850712' WHERE "spree_line_items"."id" = 23 SQL (0.6ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:12:35.854600' WHERE "spree_line_items"."id" = 23 SQL (0.8ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:12:35.857977' WHERE "spree_orders"."id" = 6  (17.3ms) commit transaction Spree::TaxRate Load (0.6ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.7ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.6ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.6ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.3ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 19]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 19], ["adjustable_type", "Spree::Shipment"]]  (0.4ms) SELECT "spree_promotion_actions"."promotion_id" FROM "spree_promotion_actions" WHERE "spree_promotion_actions"."type" IN ('Spree::Promotion::Actions::FreeShipping') AND "spree_promotion_actions"."deleted_at" IS NULL Spree::Promotion Load (0.6ms) SELECT "spree_promotions".* FROM "spree_promotions" WHERE (starts_at IS NULL OR starts_at < '2015-02-15 06:12:35.908420') AND (expires_at IS NULL OR expires_at > '2015-02-15 06:12:35.908930') AND 1=0 AND "spree_promotions"."code" IS NULL AND "spree_promotions"."path" IS NULL Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 19]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 19], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 19], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 19], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 19], ["adjustable_type", "Spree::Shipment"]] SQL (17.3ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:12:35.930928' WHERE "spree_shipments"."id" = 19  (0.3ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (13.7ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 22.99, "item_count" = 1, "adjustment_total" = 1.15, "included_tax_total" = 0.0, "additional_tax_total" = 1.15, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 29.14, "updated_at" = '2015-02-15 06:12:35.953901' WHERE "spree_orders"."id" = 6  (0.1ms) begin transaction Spree::Order Exists (0.5ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.7ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "payment"], ["updated_at", "2015-02-15 06:12:35.988115"]]  (14.8ms) commit transaction  (0.2ms) begin transaction SQL (2.6ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:12:36.010662"], ["name", "order"], ["next_state", "payment"], ["previous_state", "delivery"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-15 06:12:36.010662"], ["user_id", 1]]  (14.2ms) commit transaction  (0.2ms) begin transaction Spree::Order Exists (0.5ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.2ms) commit transaction  (0.3ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.3ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.7ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order')) Spree::LineItem Load (0.8ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (23) Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 23]] Spree::Calculator Load (0.4ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (16.7ms) UPDATE "spree_adjustments" SET "amount" = 1.15, "updated_at" = '2015-02-15 06:12:36.105694' WHERE "spree_adjustments"."id" = 95 SQL (13.8ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.15, "adjustment_total" = 1.15, "updated_at" = '2015-02-15 06:12:36.124201' WHERE "spree_line_items"."id" = 23  (0.5ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.3ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (14.4ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 22.99, "item_count" = 1, "adjustment_total" = 1.15, "included_tax_total" = 0.0, "additional_tax_total" = 1.15, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 29.14, "updated_at" = '2015-02-15 06:12:36.169910' WHERE "spree_orders"."id" = 6  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 23]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 19]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.4ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 19]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 19]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.3ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 19]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 23]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (1727.4ms) Completed 200 OK in 4206ms (Views: 2256.9ms | ActiveRecord: 975.3ms) Started GET "/" for 127.0.0.1 at 2015-02-15 01:22:42 -0500 Processing by Sprangular::HomeController#index as HTML Spree::User Load (0.5ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.1ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.1ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 35]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 36]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 23]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.1ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 19]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 19]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 19]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 19]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.1ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.1ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 19]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 23]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.1ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.1ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.1ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (1015.9ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 19]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (763.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (2322.0ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (249.5ms) Spree::Tracker Load (0.3ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.2ms) Completed 200 OK in 4857ms (Views: 4830.3ms | ActiveRecord: 13.0ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-15 01:22:47 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-15 01:22:48 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:48 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:48 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:48 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:48 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:48 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:48 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:48 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:48 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:48 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:48 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:48 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:48 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:48 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:48 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:48 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:49 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:49 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:49 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:49 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:49 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:49 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:49 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:49 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:49 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:49 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:49 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:49 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:49 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:49 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:49 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:49 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:49 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:49 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:49 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:50 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:50 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:50 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:50 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:50 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:50 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:50 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:50 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:50 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:50 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:50 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:50 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:50 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:50 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:50 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:50 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:50 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:50 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:50 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:51 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:51 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:51 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:51 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:51 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:51 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:51 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:51 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:51 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:51 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:51 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:51 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:51 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:51 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:51 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:51 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:51 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:51 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:51 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:51 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:52 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:52 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:52 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:52 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:52 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:52 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:52 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:52 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:52 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:52 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:52 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:52 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-15 01:22:52 -0500 Started GET "/api/countries" for 127.0.0.1 at 2015-02-15 01:22:53 -0500 Processing by Sprangular::CountriesController#index as JSON Spree::User Load (0.5ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Country Load (4.8ms) SELECT "spree_countries".* FROM "spree_countries" ORDER BY "spree_countries"."name" ASC Spree::State Load (73.5ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."country_id" IN (3, 6, 62, 11, 1, 8, 5, 9, 4, 10, 7, 14, 13, 12, 16, 32, 23, 19, 18, 36, 20, 37, 25, 27, 33, 29, 30, 17, 35, 34, 31, 106, 28, 22, 21, 24, 117, 47, 38, 52, 124, 41, 214, 46, 48, 54, 39, 49, 119, 42, 40, 45, 50, 98, 51, 53, 55, 56, 44, 59, 58, 60, 61, 63, 65, 209, 88, 67, 64, 69, 72, 74, 71, 70, 75, 80, 175, 215, 76, 85, 79, 57, 82, 83, 89, 84, 78, 87, 92, 91, 81, 86, 93, 94, 99, 96, 235, 97, 95, 100, 109, 105, 101, 108, 107, 102, 104, 103, 110, 112, 114, 111, 113, 125, 115, 118, 121, 122, 123, 116, 126, 135, 127, 132, 131, 136, 129, 133, 134, 148, 144, 142, 156, 158, 155, 145, 153, 143, 150, 151, 154, 245, 157, 73, 139, 138, 147, 140, 152, 137, 159, 146, 160, 169, 168, 166, 161, 171, 165, 162, 164, 170, 163, 149, 167, 172, 178, 184, 182, 173, 176, 185, 174, 177, 181, 179, 183, 186, 188, 190, 191, 187, 26, 198, 120, 128, 141, 180, 236, 243, 203, 208, 192, 204, 189, 194, 202, 197, 210, 201, 199, 193, 205, 246, 90, 207, 68, 130, 195, 206, 200, 212, 196, 43, 211, 227, 218, 228, 217, 220, 216, 219, 223, 225, 222, 224, 221, 213, 226, 230, 229, 2, 77, 232, 231, 233, 234, 241, 237, 240, 238, 239, 242, 66, 244, 247, 248, 15) ORDER BY name ASC Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/countries/index.rabl (15080.9ms) Completed 200 OK in 15127ms (Views: 15018.6ms | ActiveRecord: 80.5ms) Started GET "/api/cart.json" for 127.0.0.1 at 2015-02-15 01:23:08 -0500 Processing by Sprangular::CartsController#show as JSON Spree::User Load (0.8ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 35]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 36]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 23]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 19]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 19]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 19]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 19]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 19]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.3ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.1ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.3ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 19]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 23]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (1400.5ms) Completed 200 OK in 1443ms (Views: 1407.4ms | ActiveRecord: 16.3ms) Started GET "/assets/checkout/index.html" for 127.0.0.1 at 2015-02-15 01:23:09 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-15 01:23:09 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-15 01:23:09 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (1.0ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.3ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (147.3ms) Completed 200 OK in 197ms (Views: 161.1ms | ActiveRecord: 8.7ms) Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-15 01:23:10 -0500 Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-15 01:23:10 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.6ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.1ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (12.5ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (228.1ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.3ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1111.2ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-15 01:23:11 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-15 01:23:11 -0500 Started GET "/assets/checkout/nav.html" for 127.0.0.1 at 2015-02-15 01:23:11 -0500 Started GET "/assets/addresses/selection.html" for 127.0.0.1 at 2015-02-15 01:23:11 -0500 Started GET "/assets/shipping/rates.html" for 127.0.0.1 at 2015-02-15 01:23:12 -0500 Started GET "/assets/credit_cards/selection.html" for 127.0.0.1 at 2015-02-15 01:23:12 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-15 01:23:12 -0500 Started GET "/assets/addresses/form.html" for 127.0.0.1 at 2015-02-15 01:23:12 -0500 Started GET "/assets/credit_cards/form.html" for 127.0.0.1 at 2015-02-15 01:23:12 -0500 Started GET "/api/products?page=1&per_page=12" for 127.0.0.1 at 2015-02-15 01:42:32 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12"} Spree::User Load (0.4ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.5ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 06:42:34.325751') AND ("spree_products".available_on <= '2015-02-15 06:42:34.326578') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0) subquery_for_count  (0.4ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 06:42:34.325751') AND ("spree_products".available_on <= '2015-02-15 06:42:34.326578') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (0.6ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 06:42:34.325751') AND ("spree_products".available_on <= '2015-02-15 06:42:34.326578') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.2ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Image Load (1.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.2ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Price Load (0.6ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::ProductProperty Load (1.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY spree_product_properties.position Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_variants".position ASC Spree::Image Load (0.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.3ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 9]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 9]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 9]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 11]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 11]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 11]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 12]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 12]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 12]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (4569.7ms) Completed 200 OK in 4719ms (Views: 4540.8ms | ActiveRecord: 47.8ms) Started DELETE "/api/cart" for 127.0.0.1 at 2015-02-15 01:42:44 -0500 Processing by Sprangular::CartsController#destroy as JSON Spree::User Load (0.5ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.1ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]]  (0.1ms) begin transaction Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] SQL (1.6ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 95]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 23]] SQL (0.4ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:42:45.014264' WHERE "spree_line_items"."id" = 23 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:42:45.018368' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 23], ["adjustable_type", "Spree::LineItem"]] SQL (0.2ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:42:45.058635' WHERE "spree_line_items"."id" = 23 Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."line_item_id" = ? [["line_item_id", 23]] SQL (1.1ms) DELETE FROM "spree_inventory_units" WHERE "spree_inventory_units"."id" = ? [["id", 43]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 19]] SQL (0.4ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-15 06:42:45.110680' WHERE "spree_shipments"."id" = 19 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:42:45.117108' WHERE "spree_orders"."id" = 6 SQL (0.8ms) DELETE FROM "spree_line_items" WHERE "spree_line_items"."id" = ? [["id", 23]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:42:45.120308' WHERE "spree_orders"."id" = 6  (24.5ms) commit transaction  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) begin transaction SQL (0.3ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 19], ["adjustable_type", "Spree::Shipment"]] SQL (0.2ms) DELETE FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 19]] SQL (2.0ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? [["shipment_id", 19]] SQL (2.1ms) DELETE FROM "spree_shipments" WHERE "spree_shipments"."id" = ? [["id", 19]] SQL (0.4ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:42:45.187035' WHERE "spree_orders"."id" = 6  (20.6ms) commit transaction  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.2ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order'))  (0.2ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.2ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (26.3ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 0.0, "item_count" = 0, "adjustment_total" = 0.0, "included_tax_total" = 0.0, "additional_tax_total" = 0.0, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 0.0, "updated_at" = '2015-02-15 06:42:45.286577' WHERE "spree_orders"."id" = 6  (0.2ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.5ms) UPDATE "spree_orders" SET "additional_tax_total" = ?, "adjustment_total" = ?, "item_count" = ?, "item_total" = ?, "shipment_total" = ?, "state" = ?, "total" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["additional_tax_total", 0.0], ["adjustment_total", 0.0], ["item_count", 0], ["item_total", 0.0], ["shipment_total", 0.0], ["state", "cart"], ["total", 0.0], ["updated_at", "2015-02-15 06:42:45.323187"]]  (23.7ms) commit transaction  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 35]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 36]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Payment Load (0.4ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (273.0ms) Completed 200 OK in 711ms (Views: 283.7ms | ActiveRecord: 123.5ms) Started POST "/api/cart/add_variant" for 127.0.0.1 at 2015-02-15 01:42:48 -0500 Processing by Sprangular::CartsController#add_variant as JSON Parameters: {"variant_id"=>"2", "quantity"=>"1"} Spree::User Load (0.5ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.1ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" = ? [["variant_id", 2]]  (0.1ms) begin transaction Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' SQL (1.4ms) INSERT INTO "spree_line_items" ("cost_price", "created_at", "currency", "order_id", "price", "quantity", "tax_category_id", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["cost_price", 21.0], ["created_at", "2015-02-15 06:42:48.533543"], ["currency", "USD"], ["order_id", 6], ["price", 22.99], ["quantity", 1], ["tax_category_id", 1], ["updated_at", "2015-02-15 06:42:48.533543"], ["variant_id", 2]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 36]] SQL (0.4ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 38) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 434)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.3ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::LineItem' AND "spree_adjustments"."adjustable_id" IN (24) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' SQL (0.3ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 22.99 WHERE "spree_line_items"."id" = 24 Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (2.1ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"], ["amount", 1.15], ["created_at", "2015-02-15 06:42:48.653104"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 06:42:48.653104"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 24]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.2ms) UPDATE "spree_adjustments" SET "amount" = 1.15, "updated_at" = '2015-02-15 06:42:48.675440' WHERE "spree_adjustments"."id" = 96 SQL (0.2ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.15, "adjustment_total" = 1.15, "updated_at" = '2015-02-15 06:42:48.680158' WHERE "spree_line_items"."id" = 24 SQL (0.2ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:42:48.682319' WHERE "spree_line_items"."id" = 24 SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:42:48.683656' WHERE "spree_orders"."id" = 6 SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:42:48.686123' WHERE "spree_orders"."id" = 6 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::TaxRate Load (0.3ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.2ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::LineItem' AND "spree_adjustments"."adjustable_id" IN (24) AND "spree_adjustments"."source_type" = 'Spree::TaxRate' SQL (0.1ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 96]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 24]] SQL (0.2ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:42:48.706496' WHERE "spree_line_items"."id" = 24 Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.2ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:42:48.709260' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] SQL (0.2ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:42:48.716948' WHERE "spree_line_items"."id" = 24 SQL (0.2ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 22.99 WHERE "spree_line_items"."id" = 24 Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.1ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"], ["amount", 1.15], ["created_at", "2015-02-15 06:42:48.726570"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 06:42:48.726570"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 24]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.1ms) UPDATE "spree_adjustments" SET "amount" = 1.15, "updated_at" = '2015-02-15 06:42:48.739912' WHERE "spree_adjustments"."id" = 97 SQL (0.1ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.15, "adjustment_total" = 1.15, "updated_at" = '2015-02-15 06:42:48.741032' WHERE "spree_line_items"."id" = 24 SQL (0.3ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:42:48.742135' WHERE "spree_line_items"."id" = 24 SQL (0.3ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:42:48.743620' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 24]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.2ms) UPDATE "spree_adjustments" SET "amount" = 1.15, "updated_at" = '2015-02-15 06:42:48.757830' WHERE "spree_adjustments"."id" = 97 SQL (0.2ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.15, "adjustment_total" = 1.15, "updated_at" = '2015-02-15 06:42:48.759327' WHERE "spree_line_items"."id" = 24  (17.9ms) commit transaction  (0.6ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.2ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.5ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order')) Spree::LineItem Load (0.6ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (24) Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 24]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (14.8ms) UPDATE "spree_adjustments" SET "amount" = 1.15, "updated_at" = '2015-02-15 06:42:48.826814' WHERE "spree_adjustments"."id" = 97 SQL (14.2ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.15, "adjustment_total" = 1.15, "updated_at" = '2015-02-15 06:42:48.843064' WHERE "spree_line_items"."id" = 24  (0.2ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.2ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (17.2ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 22.99, "item_count" = 1, "adjustment_total" = 1.15, "included_tax_total" = 0.0, "additional_tax_total" = 1.15, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 24.14, "updated_at" = '2015-02-15 06:42:48.875337' WHERE "spree_orders"."id" = 6 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::Shipment Exists (0.4ms) SELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? LIMIT 1 [["order_id", 6]] Spree::Promotion Load (0.4ms) SELECT DISTINCT "spree_promotions".* FROM "spree_promotions" LEFT OUTER JOIN "spree_orders_promotions" ON "spree_promotions"."id" = "spree_orders_promotions"."promotion_id" WHERE (starts_at IS NULL OR starts_at < '2015-02-15 06:42:48.922302') AND (expires_at IS NULL OR expires_at > '2015-02-15 06:42:48.922616') AND (("spree_promotions"."code" IS NULL AND "spree_promotions"."path" IS NULL OR "spree_orders_promotions"."order_id" = 6)) Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.3ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 24]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (18.1ms) UPDATE "spree_adjustments" SET "amount" = 1.15, "updated_at" = '2015-02-15 06:42:48.938027' WHERE "spree_adjustments"."id" = 97 SQL (16.0ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.15, "adjustment_total" = 1.15, "updated_at" = '2015-02-15 06:42:48.957342' WHERE "spree_line_items"."id" = 24  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.3ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order')) Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (24) Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 24]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (15.7ms) UPDATE "spree_adjustments" SET "amount" = 1.15, "updated_at" = '2015-02-15 06:42:49.003429' WHERE "spree_adjustments"."id" = 97 SQL (21.6ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.15, "adjustment_total" = 1.15, "updated_at" = '2015-02-15 06:42:49.020318' WHERE "spree_line_items"."id" = 24  (0.2ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.2ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (93.2ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 22.99, "item_count" = 1, "adjustment_total" = 1.15, "included_tax_total" = 0.0, "additional_tax_total" = 1.15, "payment_total" = 0.0, "shipment_total" = 0.0, "promo_total" = 0.0, "total" = 24.14, "updated_at" = '2015-02-15 06:42:49.062228' WHERE "spree_orders"."id" = 6 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::Shipment Exists (0.1ms) SELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? LIMIT 1 [["order_id", 6]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 35]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 36]] Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 24]] Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (714.5ms) Completed 200 OK in 1412ms (Views: 720.7ms | ActiveRecord: 270.9ms) Started PUT "/api/orders/R079133342/apply_coupon_code" for 127.0.0.1 at 2015-02-15 01:42:55 -0500 ActionController::RoutingError (No route matches [PUT] "/api/orders/R079133342/apply_coupon_code"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.7ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.3ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (13.7ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (259.1ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.4ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1238.8ms) Started GET "/" for 127.0.0.1 at 2015-02-15 01:43:03 -0500 Processing by Sprangular::HomeController#index as HTML Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.6ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.8ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.5ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.6ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 35]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 36]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (1.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 24]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.1ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (1390.3ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (1019.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (3363.5ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (362.9ms) Spree::Tracker Load (0.3ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (7.9ms) Completed 200 OK in 8874ms (Views: 8828.7ms | ActiveRecord: 22.8ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-15 01:43:13 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-15 01:43:13 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:13 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:13 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:14 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:14 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:14 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:14 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:14 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:14 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:14 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:14 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:14 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:14 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:14 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:14 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:14 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:15 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:15 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:15 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:15 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:15 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:15 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:15 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:15 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:15 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:15 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:15 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:15 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:16 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:16 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:16 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:16 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:16 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:16 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:16 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:16 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:16 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:16 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:16 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:16 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:16 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:17 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:17 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:17 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:17 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:17 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:17 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:17 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:17 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:17 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:17 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:17 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:17 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:17 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:18 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:18 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:18 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:18 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:18 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:18 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:18 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:18 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:18 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:18 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:18 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:18 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:18 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:19 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:19 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:19 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:19 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:19 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:19 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:19 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:19 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:19 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:19 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:19 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:19 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:19 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:19 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:20 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:20 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:20 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:20 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:20 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-15 01:43:20 -0500 Started GET "/api/products?page=1&per_page=12" for 127.0.0.1 at 2015-02-15 01:43:21 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12"} Spree::User Load (1.5ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.7ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 06:43:21.808776') AND ("spree_products".available_on <= '2015-02-15 06:43:21.810461') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0) subquery_for_count  (0.7ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 06:43:21.808776') AND ("spree_products".available_on <= '2015-02-15 06:43:21.810461') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (1.8ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 06:43:21.808776') AND ("spree_products".available_on <= '2015-02-15 06:43:21.810461') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.7ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.9ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Image Load (1.2ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.4ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Price Load (0.7ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::ProductProperty Load (1.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY spree_product_properties.position Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_variants".position ASC Spree::Image Load (1.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.5ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.6ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 9]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 9]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 9]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 11]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 11]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 11]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 12]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 12]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 12]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (6528.9ms) Completed 200 OK in 6624ms (Views: 6528.2ms | ActiveRecord: 55.7ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-15 01:43:28 -0500 Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-15 01:43:28 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-15 01:43:28 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-15 01:43:28 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (1.3ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (249.8ms) Completed 200 OK in 331ms (Views: 270.3ms | ActiveRecord: 16.0ms) Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-15 01:43:29 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.3ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (3.7ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (23.7ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (310.2ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.4ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1665.4ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-15 01:43:31 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-15 01:43:31 -0500 Started PUT "/api/checkouts/R079133342/apply_coupon_code" for 127.0.0.1 at 2015-02-15 01:43:39 -0500 Processing by Spree::Api::CheckoutsController#apply_coupon_code as JSON Parameters: {"order"=>{"coupon_code"=>"10off"}, "id"=>"R079133342"} Spree::User Load (0.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1 Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] uninitialized constant Sprangular::ApiCheckoutControllerDecorator::PromotionHandler /home/josh/Projects/Dynamo/sprangular/app/controllers/spree/api/checkouts_controller_decorator.rb:15:in `apply_coupon_code' /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_controller/metal/implicit_render.rb:4:in `send_action' /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/abstract_controller/base.rb:189:in `process_action' /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_controller/metal/rendering.rb:10:in `process_action' /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/abstract_controller/callbacks.rb:20:in `block in process_action' /home/josh/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:113:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:113:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:149:in `block in halting_and_conditional' /home/josh/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:229:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:229:in `block in halting' /home/josh/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in `block in halting' /home/josh/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in `block in halting' /home/josh/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:149:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:149:in `block in halting_and_conditional' /home/josh/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in `block in halting' /home/josh/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in `block in halting' /home/josh/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:149:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:149:in `block in halting_and_conditional' /home/josh/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in `block in halting' /home/josh/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:166:in `block in halting' /home/josh/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:86:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:86:in `run_callbacks' /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/abstract_controller/callbacks.rb:19:in `process_action' /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_controller/metal/rescue.rb:29:in `process_action' /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_controller/metal/instrumentation.rb:31:in `block in process_action' /home/josh/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.9/lib/active_support/notifications.rb:159:in `block in instrument' /home/josh/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.9/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /home/josh/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.9/lib/active_support/notifications.rb:159:in `instrument' /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_controller/metal/instrumentation.rb:30:in `process_action' /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_controller/metal/params_wrapper.rb:250:in `process_action' /home/josh/.rvm/gems/ruby-2.1.5/gems/activerecord-4.1.9/lib/active_record/railties/controller_runtime.rb:18:in `process_action' /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/abstract_controller/base.rb:136:in `process' /home/josh/.rvm/gems/ruby-2.1.5/gems/actionview-4.1.9/lib/action_view/rendering.rb:30:in `process' /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_controller/metal.rb:196:in `dispatch' /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_controller/metal.rb:232:in `block in action' /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/routing/route_set.rb:82:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/routing/route_set.rb:82:in `dispatch' /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/routing/route_set.rb:50:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/journey/router.rb:73:in `block in call' /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/journey/router.rb:59:in `each' /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/journey/router.rb:59:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/routing/route_set.rb:685:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/railties-4.1.9/lib/rails/engine.rb:514:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/railties-4.1.9/lib/rails/railtie.rb:194:in `public_send' /home/josh/.rvm/gems/ruby-2.1.5/gems/railties-4.1.9/lib/rails/railtie.rb:194:in `method_missing' /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/journey/router.rb:73:in `block in call' /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/journey/router.rb:59:in `each' /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/journey/router.rb:59:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/routing/route_set.rb:685:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/prerender_rails-1.1.1/lib/prerender_rails.rb:97:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/warden-1.2.3/lib/warden/manager.rb:35:in `block in call' /home/josh/.rvm/gems/ruby-2.1.5/gems/warden-1.2.3/lib/warden/manager.rb:34:in `catch' /home/josh/.rvm/gems/ruby-2.1.5/gems/warden-1.2.3/lib/warden/manager.rb:34:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/rack-1.5.2/lib/rack/etag.rb:23:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/rack-1.5.2/lib/rack/conditionalget.rb:35:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/rack-1.5.2/lib/rack/head.rb:11:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/params_parser.rb:27:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/flash.rb:254:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:225:in `context' /home/josh/.rvm/gems/ruby-2.1.5/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:220:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/cookies.rb:562:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/activerecord-4.1.9/lib/active_record/query_cache.rb:36:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/activerecord-4.1.9/lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/activerecord-4.1.9/lib/active_record/migration.rb:380:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' /home/josh/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.9/lib/active_support/callbacks.rb:82:in `run_callbacks' /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/callbacks.rb:27:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/reloader.rb:73:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/remote_ip.rb:76:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/railties-4.1.9/lib/rails/rack/logger.rb:38:in `call_app' /home/josh/.rvm/gems/ruby-2.1.5/gems/railties-4.1.9/lib/rails/rack/logger.rb:20:in `block in call' /home/josh/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.9/lib/active_support/tagged_logging.rb:68:in `block in tagged' /home/josh/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.9/lib/active_support/tagged_logging.rb:26:in `tagged' /home/josh/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.9/lib/active_support/tagged_logging.rb:68:in `tagged' /home/josh/.rvm/gems/ruby-2.1.5/gems/railties-4.1.9/lib/rails/rack/logger.rb:20:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/request_id.rb:21:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/rack-rewrite-1.5.1/lib/rack/rewrite.rb:24:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/activesupport-4.1.9/lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/static.rb:84:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/rack-1.5.2/lib/rack/sendfile.rb:112:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/railties-4.1.9/lib/rails/engine.rb:514:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/railties-4.1.9/lib/rails/application.rb:144:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/rack-1.5.2/lib/rack/content_length.rb:14:in `call' /home/josh/.rvm/gems/ruby-2.1.5/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered text template (0.0ms) Completed 422 Unprocessable Entity in 50ms (Views: 7.2ms | ActiveRecord: 3.4ms) Started PUT "/api/checkouts/R079133342/apply_coupon_code" for 127.0.0.1 at 2015-02-15 01:43:58 -0500 Processing by Spree::Api::CheckoutsController#apply_coupon_code as JSON Parameters: {"order"=>{"coupon_code"=>"10off"}, "id"=>"R079133342"} Spree::User Load (0.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1 Spree::LineItem Load (0.5ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/promotions/handler.v1.rabl (2.1ms) Completed 422 Unprocessable Entity in 606ms (Views: 313.4ms | ActiveRecord: 10.4ms) Started PUT "/api/checkouts/R079133342/apply_coupon_code" for 127.0.0.1 at 2015-02-15 01:44:10 -0500 Processing by Spree::Api::CheckoutsController#apply_coupon_code as JSON Parameters: {"order"=>{"coupon_code"=>"5off"}, "id"=>"R079133342"} Spree::User Load (1.4ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Order Load (1.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Order Load (1.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1 Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/promotions/handler.v1.rabl (1.4ms) Completed 422 Unprocessable Entity in 371ms (Views: 314.1ms | ActiveRecord: 5.6ms) Started GET "/" for 127.0.0.1 at 2015-02-15 01:44:35 -0500 Processing by Sprangular::HomeController#index as HTML Spree::User Load (0.5ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.1ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.3ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.5ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 35]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 36]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 24]] Spree::Payment Load (0.5ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.4ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.5ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.3ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (1261.7ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (661.2ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (2573.0ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (239.0ms) Spree::Tracker Load (0.2ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (5.4ms) Completed 200 OK in 6240ms (Views: 6178.7ms | ActiveRecord: 29.2ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-15 01:44:42 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-15 01:44:42 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:42 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:42 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:42 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:42 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:42 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:42 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:42 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:42 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:42 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:42 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:42 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:43 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:43 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:43 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:43 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:43 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:43 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:43 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:43 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:43 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:43 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:43 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:44 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:44 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:44 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:44 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:44 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:44 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:44 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:44 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:44 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:44 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:44 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:44 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:44 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:45 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:45 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:45 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:45 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:45 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:45 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:45 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:45 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:45 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:45 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:45 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:45 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:45 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:45 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:46 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:46 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:46 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:46 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:46 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:46 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:46 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:46 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:46 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:46 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:46 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:46 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:46 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:47 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:47 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:47 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:47 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:47 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:47 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:47 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:47 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:47 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:47 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:47 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:47 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:47 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:48 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:48 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:48 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:48 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:48 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:48 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:48 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:48 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:49 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:49 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-15 01:44:49 -0500 Started GET "/api/products?page=1&per_page=12" for 127.0.0.1 at 2015-02-15 01:44:50 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12"} Spree::User Load (0.9ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (1.0ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 06:44:50.427285') AND ("spree_products".available_on <= '2015-02-15 06:44:50.428732') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0) subquery_for_count  (0.7ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 06:44:50.427285') AND ("spree_products".available_on <= '2015-02-15 06:44:50.428732') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (1.1ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 06:44:50.427285') AND ("spree_products".available_on <= '2015-02-15 06:44:50.428732') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.7ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Image Load (1.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.4ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Price Load (0.8ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::ProductProperty Load (1.6ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY spree_product_properties.position Spree::Property Load (0.6ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_variants".position ASC Spree::Image Load (1.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.5ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.8ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.9ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 9]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 9]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 9]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 11]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 11]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 11]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 12]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 12]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 12]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (6699.3ms) Completed 200 OK in 6769ms (Views: 6675.1ms | ActiveRecord: 57.6ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-15 01:44:57 -0500 Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-15 01:44:57 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-15 01:44:57 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (0.9ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.4ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (223.5ms) Completed 200 OK in 299ms (Views: 240.9ms | ActiveRecord: 14.0ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-15 01:44:57 -0500 Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-15 01:44:57 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (5.0ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (3.7ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (24.5ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (332.7ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.9ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (2003.1ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-15 01:45:00 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-15 01:45:00 -0500 Started PUT "/api/checkouts/R079133342/apply_coupon_code" for 127.0.0.1 at 2015-02-15 01:45:03 -0500 Processing by Spree::Api::CheckoutsController#apply_coupon_code as JSON Parameters: {"coupon_code"=>"10off", "id"=>"R079133342"} Spree::User Load (1.8ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Order Load (1.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1 Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Spree::Promotion Load (0.4ms) SELECT "spree_promotions".* FROM "spree_promotions" WHERE (starts_at IS NULL OR starts_at < '2015-02-15 06:45:03.521033') AND (expires_at IS NULL OR expires_at > '2015-02-15 06:45:03.521891') AND (lower(spree_promotions.code) = '10off') ORDER BY "spree_promotions"."id" ASC LIMIT 1 Spree::Promotion Load (0.3ms) SELECT "spree_promotions".* FROM "spree_promotions" WHERE (lower(spree_promotions.code) = '10off') ORDER BY "spree_promotions"."id" ASC LIMIT 1 Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/promotions/handler.v1.rabl (1.3ms) Completed 422 Unprocessable Entity in 367ms (Views: 298.4ms | ActiveRecord: 6.6ms) Started PUT "/api/checkouts/R079133342/apply_coupon_code" for 127.0.0.1 at 2015-02-15 01:45:14 -0500 Processing by Spree::Api::CheckoutsController#apply_coupon_code as JSON Parameters: {"coupon_code"=>"5off", "id"=>"R079133342"} Spree::User Load (1.9ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Order Load (2.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1 Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Spree::Promotion Load (0.6ms) SELECT "spree_promotions".* FROM "spree_promotions" WHERE (starts_at IS NULL OR starts_at < '2015-02-15 06:45:14.956789') AND (expires_at IS NULL OR expires_at > '2015-02-15 06:45:14.957199') AND (lower(spree_promotions.code) = '5off') ORDER BY "spree_promotions"."id" ASC LIMIT 1 Spree::Promotion Load (0.4ms) SELECT "spree_promotions".* FROM "spree_promotions" WHERE (lower(spree_promotions.code) = '5off') ORDER BY "spree_promotions"."id" ASC LIMIT 1 Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/promotions/handler.v1.rabl (1.4ms) Completed 422 Unprocessable Entity in 357ms (Views: 298.8ms | ActiveRecord: 7.1ms) Started GET "/spree/admin" for 127.0.0.1 at 2015-02-15 01:45:53 -0500 Processing by Spree::Admin::RootController#index as HTML Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/backend_configuration/locale' LIMIT 1 Redirected to http://localhost:3000/spree/admin/orders Completed 302 Found in 10ms (ActiveRecord: 0.8ms) Started GET "/spree/admin/orders" for 127.0.0.1 at 2015-02-15 01:45:53 -0500 Processing by Spree::Admin::OrdersController#index as HTML Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/backend_configuration/locale' LIMIT 1 Spree::User Load (0.4ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1  (0.1ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]]  (0.2ms) SELECT DISTINCT "spree_promotions"."name", "spree_promotions"."id" FROM "spree_promotions" INNER JOIN spree_orders_promotions ON spree_orders_promotions.promotion_id = spree_promotions.id  (0.3ms) SELECT "spree_variants"."sku", "spree_variants"."id" FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL  (0.3ms) SELECT DISTINCT COUNT(DISTINCT "spree_orders"."id") FROM "spree_orders" WHERE ("spree_orders"."completed_at" IS NOT NULL)  (0.4ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_orders"."id" AS count_column FROM "spree_orders" WHERE ("spree_orders"."completed_at" IS NOT NULL) LIMIT 15 OFFSET 0) subquery_for_count Spree::Order Load (0.6ms) SELECT DISTINCT "spree_orders".* FROM "spree_orders" WHERE ("spree_orders"."completed_at" IS NOT NULL) ORDER BY "spree_orders"."completed_at" DESC LIMIT 15 OFFSET 0 Spree::User Load (0.5ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/orders/index.html.erb within spree/layouts/admin (194.3ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_translations.html.erb (4.6ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_head.html.erb (4120.0ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_alert.html.erb (0.0ms) Deface: 1 overrides found for 'spree/admin/shared/_header' Deface: 'auth_admin_login_navigation_bar' matched 1 times with '[data-hook='admin_login_navigation_bar'], #admin_login_navigation_bar[data-hook]' Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree_auth_devise-e2ee95e53de6/lib/views/backend/spree/layouts/admin/_login_nav.html.erb (2.4ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_header.html.erb (31.2ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_tabs.html.erb (24.7ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_menu.html.erb (59.2ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_sub_menu.html.erb (0.9ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_content_header.html.erb (1.2ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_table_filter.html.erb (1.1ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_sidebar.html.erb (1.2ms) Completed 200 OK in 4809ms (Views: 4792.1ms | ActiveRecord: 3.3ms) Started GET "/assets/jquery.alerts/jquery.alerts.spree.css?body=1" for 127.0.0.1 at 2015-02-15 01:45:58 -0500 Started GET "/assets/jquery.alerts/jquery.alerts.css?body=1" for 127.0.0.1 at 2015-02-15 01:45:58 -0500 Started GET "/assets/normalize.css?body=1" for 127.0.0.1 at 2015-02-15 01:45:58 -0500 Started GET "/assets/skeleton.css?body=1" for 127.0.0.1 at 2015-02-15 01:45:59 -0500 Started GET "/assets/jquery-ui/theme.css?body=1" for 127.0.0.1 at 2015-02-15 01:45:59 -0500 Started GET "/assets/responsive-tables.css?body=1" for 127.0.0.1 at 2015-02-15 01:45:59 -0500 Started GET "/assets/jquery-ui/core.css?body=1" for 127.0.0.1 at 2015-02-15 01:45:59 -0500 Started GET "/assets/jquery-ui/datepicker.css?body=1" for 127.0.0.1 at 2015-02-15 01:45:59 -0500 Started GET "/assets/jquery-ui/menu.css?body=1" for 127.0.0.1 at 2015-02-15 01:45:59 -0500 Started GET "/assets/jquery-ui/autocomplete.css?body=1" for 127.0.0.1 at 2015-02-15 01:45:59 -0500 Started GET "/assets/jquery.powertip.css?body=1" for 127.0.0.1 at 2015-02-15 01:45:59 -0500 Started GET "/assets/select2.css?body=1" for 127.0.0.1 at 2015-02-15 01:45:59 -0500 Started GET "/assets/spree/backend/spree_admin.css?body=1" for 127.0.0.1 at 2015-02-15 01:45:59 -0500 Started GET "/assets/spree/backend.css?body=1" for 127.0.0.1 at 2015-02-15 01:46:00 -0500 Started GET "/assets/spree/backend/all.css?body=1" for 127.0.0.1 at 2015-02-15 01:46:00 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:00 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:00 -0500 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:00 -0500 Started GET "/assets/jquery-migrate-1.0.0.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:00 -0500 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:00 -0500 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:00 -0500 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:00 -0500 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:00 -0500 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:01 -0500 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:01 -0500 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:01 -0500 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:01 -0500 Started GET "/assets/modernizr.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:01 -0500 Started GET "/assets/jquery.cookie.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:01 -0500 Started GET "/assets/jquery.delayedobserver.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:01 -0500 Started GET "/assets/jquery.jstree/jquery.jstree.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:01 -0500 Started GET "/assets/jquery.alerts/jquery.alerts.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:01 -0500 Started GET "/assets/jquery.powertip.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:01 -0500 Started GET "/assets/jquery.vAlign.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:01 -0500 Started GET "/assets/css_browser_selector_dev.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:02 -0500 Started GET "/assets/spin.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:02 -0500 Started GET "/assets/trunk8.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:02 -0500 Started GET "/assets/jquery.adaptivemenu.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:02 -0500 Started GET "/assets/equalize.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:02 -0500 Started GET "/assets/responsive-tables.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:02 -0500 Started GET "/assets/jsuri.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:02 -0500 Started GET "/assets/spree.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:02 -0500 Started GET "/assets/select2.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:02 -0500 Started GET "/assets/spree/backend/spree-select2.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:02 -0500 Started GET "/assets/spree/backend/address_states.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:03 -0500 Started GET "/assets/spree/backend/adjustments.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:03 -0500 Started GET "/assets/spree/backend/admin.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:03 -0500 Started GET "/assets/handlebars.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:03 -0500 Started GET "/assets/spree/backend/handlebar_extensions.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:03 -0500 Started GET "/assets/spree/backend/variant_autocomplete.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:03 -0500 Started GET "/assets/spree/backend/taxon_autocomplete.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:03 -0500 Started GET "/assets/spree/backend/option_type_autocomplete.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:03 -0500 Started GET "/assets/spree/backend/user_picker.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:03 -0500 Started GET "/assets/spree/backend/product_picker.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:03 -0500 Started GET "/assets/spree/backend/taxons.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:03 -0500 Started GET "/assets/spree/backend/calculator.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:03 -0500 Started GET "/assets/spree/backend/checkouts/edit.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:04 -0500 Started GET "/assets/spree/backend/gateway.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:04 -0500 Started GET "/assets/spree/backend/general_settings.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:04 -0500 Started GET "/assets/spree/backend/images/index.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:04 -0500 Started GET "/assets/spree/backend/images/new.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:04 -0500 Started GET "/assets/spree/backend/line_items.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:04 -0500 Started GET "/assets/spree/backend/line_items_on_order_edit.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:04 -0500 Started GET "/assets/spree/backend/nested-attribute.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:04 -0500 Started GET "/assets/spree/backend/orders/edit.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:04 -0500 Started GET "/assets/spree/backend/orders/edit_form.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:04 -0500 Started GET "/assets/spree/backend/payments/edit.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:04 -0500 Started GET "/assets/jquery.payment.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:05 -0500 Started GET "/assets/spree/backend/payments/new.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:05 -0500 Started GET "/assets/spree/backend/progress.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:05 -0500 Started GET "/assets/spree/backend/promotions.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:05 -0500 Started GET "/assets/spree/backend/returns/expedited_exchanges_warning.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:05 -0500 Started GET "/assets/spree/backend/returns/return_item_selection.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:05 -0500 Started GET "/assets/spree/backend/select_payments.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:05 -0500 Started GET "/assets/spree/backend/shipments.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:05 -0500 Started GET "/assets/spree/backend/states.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:05 -0500 Started GET "/assets/spree/backend/stock_management.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:05 -0500 Started GET "/assets/spree/backend/stock_movement.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:05 -0500 Started GET "/assets/spree/backend/stock_transfer.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:06 -0500 Started GET "/assets/spree/backend/taxon_tree_menu.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:06 -0500 Started GET "/assets/spree/backend/taxonomy.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:06 -0500 Started GET "/assets/spree/backend/underscore-min.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:06 -0500 Started GET "/assets/spree/backend/variant_management.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:06 -0500 Started GET "/assets/spree/backend/zone.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:06 -0500 Started GET "/assets/spree/frontend/backend.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:06 -0500 Started GET "/assets/spree/backend.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:06 -0500 Started GET "/assets/spree/backend/all.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:06 -0500 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:07 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-15 01:46:07 -0500 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:07 -0500 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:07 -0500 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:07 -0500 Started GET "/assets/modernizr.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:07 -0500 Started GET "/assets/jquery.cookie.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:07 -0500 Started GET "/assets/jquery.delayedobserver.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:07 -0500 Started GET "/assets/jquery.jstree/jquery.jstree.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:07 -0500 Started GET "/assets/jquery.alerts/jquery.alerts.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:07 -0500 Started GET "/assets/jquery.powertip.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:08 -0500 Started GET "/assets/jquery.vAlign.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:08 -0500 Started GET "/assets/css_browser_selector_dev.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:08 -0500 Started GET "/assets/spin.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:08 -0500 Started GET "/assets/trunk8.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:08 -0500 Started GET "/assets/jquery.adaptivemenu.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:08 -0500 Started GET "/assets/equalize.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:08 -0500 Started GET "/assets/responsive-tables.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:08 -0500 Started GET "/assets/jsuri.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:08 -0500 Started GET "/assets/spree.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:08 -0500 Started GET "/assets/select2.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:08 -0500 Started GET "/assets/spree/backend/spree-select2.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:09 -0500 Started GET "/assets/spree/backend/address_states.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:09 -0500 Started GET "/assets/spree/backend/adjustments.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:09 -0500 Started GET "/assets/spree/backend/admin.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:09 -0500 Started GET "/assets/handlebars.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:09 -0500 Started GET "/assets/spree/backend/handlebar_extensions.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:09 -0500 Started GET "/assets/spree/backend/variant_autocomplete.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:09 -0500 Started GET "/assets/spree/backend/taxon_autocomplete.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:09 -0500 Started GET "/assets/spree/backend/option_type_autocomplete.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:09 -0500 Started GET "/assets/spree/backend/user_picker.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:09 -0500 Started GET "/assets/spree/backend/product_picker.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:09 -0500 Started GET "/assets/spree/backend/taxons.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:10 -0500 Started GET "/assets/spree/backend/calculator.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:10 -0500 Started GET "/assets/spree/backend/checkouts/edit.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:10 -0500 Started GET "/assets/spree/backend/gateway.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:10 -0500 Started GET "/assets/spree/backend/general_settings.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:10 -0500 Started GET "/assets/spree/backend/images/index.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:10 -0500 Started GET "/assets/spree/backend/images/new.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:10 -0500 Started GET "/assets/spree/backend/line_items.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:10 -0500 Started GET "/assets/spree/backend/line_items_on_order_edit.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:10 -0500 Started GET "/assets/spree/backend/nested-attribute.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:10 -0500 Started GET "/assets/spree/backend/orders/edit.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:10 -0500 Started GET "/assets/spree/backend/orders/edit_form.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:10 -0500 Started GET "/assets/spree/backend/payments/edit.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:11 -0500 Started GET "/assets/jquery.payment.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:11 -0500 Started GET "/assets/spree/backend/payments/new.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:11 -0500 Started GET "/assets/spree/backend/progress.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:11 -0500 Started GET "/assets/spree/backend/promotions.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:11 -0500 Started GET "/assets/spree/backend/returns/expedited_exchanges_warning.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:11 -0500 Started GET "/assets/spree/backend/returns/return_item_selection.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:11 -0500 Started GET "/assets/spree/backend/select_payments.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:11 -0500 Started GET "/assets/spree/backend/shipments.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:11 -0500 Started GET "/assets/spree/backend/states.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:11 -0500 Started GET "/assets/spree/backend/stock_management.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:11 -0500 Started GET "/assets/spree/backend/stock_movement.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:12 -0500 Started GET "/assets/spree/backend/stock_transfer.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:12 -0500 Started GET "/assets/spree/backend/taxon_tree_menu.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:12 -0500 Started GET "/assets/spree/backend/taxonomy.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:12 -0500 Started GET "/assets/spree/backend/underscore-min.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:12 -0500 Started GET "/assets/spree/backend/variant_management.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:12 -0500 Started GET "/assets/spree/backend/zone.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:12 -0500 Started GET "/assets/spree/frontend/backend.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:12 -0500 Started GET "/assets/spree/backend.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:12 -0500 Started GET "/assets/spree/backend/all.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:12 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-15 01:46:12 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-15 01:46:13 -0500 Started GET "/assets/jquery-ui/ui-bg_flat_75_ffffff_40x100.png" for 127.0.0.1 at 2015-02-15 01:46:13 -0500 Started GET "/spree/admin/promotions" for 127.0.0.1 at 2015-02-15 01:46:35 -0500 Processing by Spree::Admin::PromotionsController#index as HTML Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/backend_configuration/locale' LIMIT 1 Spree::User Load (0.9ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/promotions_per_page' LIMIT 1 Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_promotion_sub_menu.html.erb (6.8ms) Spree::PromotionCategory Load (0.4ms) SELECT "spree_promotion_categories".* FROM "spree_promotion_categories" ORDER BY "spree_promotion_categories"."name" ASC  (0.3ms) SELECT DISTINCT COUNT(DISTINCT "spree_promotions"."id") FROM "spree_promotions"  (0.4ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_promotions"."id" AS count_column FROM "spree_promotions" LIMIT 15 OFFSET 0) subquery_for_count Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/promotions/index.html.erb within spree/layouts/admin (168.6ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_translations.html.erb (39.3ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_head.html.erb (3858.6ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_alert.html.erb (0.0ms) Deface: 1 overrides found for 'spree/admin/shared/_header' Deface: 'auth_admin_login_navigation_bar' matched 1 times with '[data-hook='admin_login_navigation_bar'], #admin_login_navigation_bar[data-hook]' Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree_auth_devise-e2ee95e53de6/lib/views/backend/spree/layouts/admin/_login_nav.html.erb (1.5ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_header.html.erb (38.8ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_tabs.html.erb (14.9ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_menu.html.erb (60.8ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_sub_menu.html.erb (0.5ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_content_header.html.erb (0.5ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_table_filter.html.erb (0.6ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_sidebar.html.erb (0.4ms) Completed 200 OK in 4689ms (Views: 4650.0ms | ActiveRecord: 2.9ms) Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:41 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:42 -0500 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:42 -0500 Started GET "/assets/jquery-migrate-1.0.0.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:42 -0500 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:42 -0500 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:42 -0500 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:42 -0500 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:42 -0500 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:42 -0500 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:42 -0500 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:42 -0500 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:42 -0500 Started GET "/assets/modernizr.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:42 -0500 Started GET "/assets/jquery.cookie.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:42 -0500 Started GET "/assets/jquery.delayedobserver.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:43 -0500 Started GET "/assets/jquery.jstree/jquery.jstree.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:43 -0500 Started GET "/assets/jquery.alerts/jquery.alerts.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:43 -0500 Started GET "/assets/jquery.powertip.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:43 -0500 Started GET "/assets/jquery.vAlign.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:43 -0500 Started GET "/assets/css_browser_selector_dev.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:43 -0500 Started GET "/assets/spin.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:43 -0500 Started GET "/assets/trunk8.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:43 -0500 Started GET "/assets/jquery.adaptivemenu.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:43 -0500 Started GET "/assets/equalize.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:43 -0500 Started GET "/assets/responsive-tables.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:43 -0500 Started GET "/assets/jsuri.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:43 -0500 Started GET "/assets/spree.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:43 -0500 Started GET "/assets/select2.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:43 -0500 Started GET "/assets/spree/backend/spree-select2.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:44 -0500 Started GET "/assets/spree/backend/address_states.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:44 -0500 Started GET "/assets/spree/backend/adjustments.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:44 -0500 Started GET "/assets/spree/backend/admin.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:44 -0500 Started GET "/assets/handlebars.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:44 -0500 Started GET "/assets/spree/backend/handlebar_extensions.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:44 -0500 Started GET "/assets/spree/backend/variant_autocomplete.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:44 -0500 Started GET "/assets/spree/backend/taxon_autocomplete.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:44 -0500 Started GET "/assets/spree/backend/option_type_autocomplete.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:44 -0500 Started GET "/assets/spree/backend/user_picker.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:44 -0500 Started GET "/assets/spree/backend/product_picker.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:44 -0500 Started GET "/assets/spree/backend/taxons.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:44 -0500 Started GET "/assets/spree/backend/calculator.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:44 -0500 Started GET "/assets/spree/backend/checkouts/edit.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:45 -0500 Started GET "/assets/spree/backend/gateway.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:45 -0500 Started GET "/assets/spree/backend/general_settings.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:45 -0500 Started GET "/assets/spree/backend/images/index.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:45 -0500 Started GET "/assets/spree/backend/images/new.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:45 -0500 Started GET "/assets/spree/backend/line_items.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:45 -0500 Started GET "/assets/spree/backend/line_items_on_order_edit.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:45 -0500 Started GET "/assets/spree/backend/nested-attribute.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:45 -0500 Started GET "/assets/spree/backend/orders/edit.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:45 -0500 Started GET "/assets/spree/backend/orders/edit_form.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:45 -0500 Started GET "/assets/spree/backend/payments/edit.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:45 -0500 Started GET "/assets/jquery.payment.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:45 -0500 Started GET "/assets/spree/backend/payments/new.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:45 -0500 Started GET "/assets/spree/backend/progress.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:45 -0500 Started GET "/assets/spree/backend/promotions.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:46 -0500 Started GET "/assets/spree/backend/returns/expedited_exchanges_warning.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:46 -0500 Started GET "/assets/spree/backend/returns/return_item_selection.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:46 -0500 Started GET "/assets/spree/backend/select_payments.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:46 -0500 Started GET "/assets/spree/backend/shipments.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:46 -0500 Started GET "/assets/spree/backend/states.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:46 -0500 Started GET "/assets/spree/backend/stock_management.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:46 -0500 Started GET "/assets/spree/backend/stock_movement.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:46 -0500 Started GET "/assets/spree/backend/taxon_tree_menu.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:46 -0500 Started GET "/assets/spree/backend/stock_transfer.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:46 -0500 Started GET "/assets/spree/backend/taxonomy.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:46 -0500 Started GET "/assets/spree/backend/underscore-min.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:46 -0500 Started GET "/assets/spree/backend/variant_management.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:46 -0500 Started GET "/assets/spree/backend/zone.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:47 -0500 Started GET "/assets/spree/frontend/backend.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:47 -0500 Started GET "/assets/spree/backend.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:47 -0500 Started GET "/assets/spree/backend/all.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:47 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-15 01:46:47 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-15 01:46:47 -0500 Started GET "/spree/admin/promotions/new" for 127.0.0.1 at 2015-02-15 01:46:50 -0500 Processing by Spree::Admin::PromotionsController#new as HTML Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/backend_configuration/locale' LIMIT 1 Spree::User Load (0.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_promotion_sub_menu.html.erb (3.2ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/core/app/views/spree/shared/_error_messages.html.erb (1.5ms) Spree::PromotionCategory Load (0.6ms) SELECT "spree_promotion_categories".* FROM "spree_promotion_categories" ORDER BY "spree_promotion_categories"."name" ASC  (0.3ms) SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."eligible" = 't' AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND 1=0 Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/promotions/_form.html.erb (143.9ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_new_resource_links.html.erb (2.8ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/promotions/new.html.erb within spree/layouts/admin (314.3ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_translations.html.erb (4.1ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_head.html.erb (3806.2ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_alert.html.erb (0.0ms) Deface: 1 overrides found for 'spree/admin/shared/_header' Deface: 'auth_admin_login_navigation_bar' matched 1 times with '[data-hook='admin_login_navigation_bar'], #admin_login_navigation_bar[data-hook]' Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree_auth_devise-e2ee95e53de6/lib/views/backend/spree/layouts/admin/_login_nav.html.erb (1.7ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_header.html.erb (84.1ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_tabs.html.erb (15.2ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_menu.html.erb (61.9ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_sub_menu.html.erb (0.8ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_content_header.html.erb (0.5ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_table_filter.html.erb (0.4ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_sidebar.html.erb (0.4ms) Completed 200 OK in 4777ms (Views: 4758.7ms | ActiveRecord: 2.9ms) Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:55 -0500 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:56 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:56 -0500 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:56 -0500 Started GET "/assets/jquery-migrate-1.0.0.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:56 -0500 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:56 -0500 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:56 -0500 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:56 -0500 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:56 -0500 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:56 -0500 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:56 -0500 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:56 -0500 Started GET "/assets/modernizr.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:56 -0500 Started GET "/assets/jquery.cookie.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:56 -0500 Started GET "/assets/jquery.jstree/jquery.jstree.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:57 -0500 Started GET "/assets/jquery.delayedobserver.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:57 -0500 Started GET "/assets/jquery.alerts/jquery.alerts.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:57 -0500 Started GET "/assets/jquery.powertip.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:57 -0500 Started GET "/assets/jquery.vAlign.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:57 -0500 Started GET "/assets/css_browser_selector_dev.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:57 -0500 Started GET "/assets/spin.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:57 -0500 Started GET "/assets/jquery.adaptivemenu.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:57 -0500 Started GET "/assets/trunk8.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:57 -0500 Started GET "/assets/equalize.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:57 -0500 Started GET "/assets/responsive-tables.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:57 -0500 Started GET "/assets/jsuri.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:57 -0500 Started GET "/assets/spree.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:57 -0500 Started GET "/assets/select2.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:57 -0500 Started GET "/assets/spree/backend/spree-select2.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:58 -0500 Started GET "/assets/spree/backend/address_states.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:58 -0500 Started GET "/assets/spree/backend/adjustments.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:58 -0500 Started GET "/assets/spree/backend/admin.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:58 -0500 Started GET "/assets/handlebars.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:58 -0500 Started GET "/assets/spree/backend/handlebar_extensions.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:58 -0500 Started GET "/assets/spree/backend/variant_autocomplete.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:58 -0500 Started GET "/assets/spree/backend/taxon_autocomplete.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:58 -0500 Started GET "/assets/spree/backend/option_type_autocomplete.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:58 -0500 Started GET "/assets/spree/backend/user_picker.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:58 -0500 Started GET "/assets/spree/backend/product_picker.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:58 -0500 Started GET "/assets/spree/backend/taxons.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:58 -0500 Started GET "/assets/spree/backend/calculator.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:58 -0500 Started GET "/assets/spree/backend/checkouts/edit.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:58 -0500 Started GET "/assets/spree/backend/gateway.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:59 -0500 Started GET "/assets/spree/backend/general_settings.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:59 -0500 Started GET "/assets/spree/backend/images/index.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:59 -0500 Started GET "/assets/spree/backend/images/new.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:59 -0500 Started GET "/assets/spree/backend/line_items.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:59 -0500 Started GET "/assets/spree/backend/line_items_on_order_edit.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:59 -0500 Started GET "/assets/spree/backend/nested-attribute.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:59 -0500 Started GET "/assets/spree/backend/orders/edit_form.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:59 -0500 Started GET "/assets/spree/backend/orders/edit.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:59 -0500 Started GET "/assets/spree/backend/payments/edit.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:59 -0500 Started GET "/assets/jquery.payment.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:59 -0500 Started GET "/assets/spree/backend/payments/new.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:59 -0500 Started GET "/assets/spree/backend/progress.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:59 -0500 Started GET "/assets/spree/backend/promotions.js?body=1" for 127.0.0.1 at 2015-02-15 01:46:59 -0500 Started GET "/assets/spree/backend/returns/expedited_exchanges_warning.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:00 -0500 Started GET "/assets/spree/backend/select_payments.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:00 -0500 Started GET "/assets/spree/backend/returns/return_item_selection.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:00 -0500 Started GET "/assets/spree/backend/shipments.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:00 -0500 Started GET "/assets/spree/backend/states.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:00 -0500 Started GET "/assets/spree/backend/stock_management.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:00 -0500 Started GET "/assets/spree/backend/stock_transfer.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:00 -0500 Started GET "/assets/spree/backend/stock_movement.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:00 -0500 Started GET "/assets/spree/backend/taxon_tree_menu.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:00 -0500 Started GET "/assets/spree/backend/taxonomy.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:00 -0500 Started GET "/assets/spree/backend/underscore-min.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:00 -0500 Started GET "/assets/spree/backend/variant_management.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:00 -0500 Started GET "/assets/spree/backend/zone.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:00 -0500 Started GET "/assets/spree/frontend/backend.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:01 -0500 Started GET "/assets/spree/backend.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:01 -0500 Started GET "/assets/spree/backend/all.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:01 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-15 01:47:01 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-15 01:47:01 -0500 Started GET "/assets/select2-spinner.gif" for 127.0.0.1 at 2015-02-15 01:47:16 -0500 Started POST "/spree/admin/promotions" for 127.0.0.1 at 2015-02-15 01:47:18 -0500 Processing by Spree::Admin::PromotionsController#create as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"OwabX10KlJRIiIC0sAIwtCanqkzoIH/Mo+FZ4O2+eio=", "promotion"=>{"name"=>"10off", "code"=>"10off", "path"=>"", "advertise"=>"0", "description"=>"", "promotion_category_id"=>"", "usage_limit"=>"", "starts_at"=>"2015/02/08", "expires_at"=>""}, "button"=>""} Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/backend_configuration/locale' LIMIT 1 Spree::User Load (0.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]]  (0.1ms) begin transaction SQL (3.0ms) INSERT INTO "spree_promotions" ("code", "created_at", "description", "name", "starts_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["code", "10off"], ["created_at", "2015-02-15 06:47:18.138372"], ["description", ""], ["name", "10off"], ["starts_at", "2015-02-08 00:00:00.000000"], ["updated_at", "2015-02-15 06:47:18.138372"]]  (20.2ms) commit transaction Redirected to http://localhost:3000/spree/admin/promotions/1/edit Completed 302 Found in 59ms (ActiveRecord: 25.5ms) Started GET "/spree/admin/promotions/1/edit" for 127.0.0.1 at 2015-02-15 01:47:18 -0500 Processing by Spree::Admin::PromotionsController#edit as HTML Parameters: {"id"=>"1"} Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/backend_configuration/locale' LIMIT 1 Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Spree::Promotion Load (0.4ms) SELECT "spree_promotions".* FROM "spree_promotions" WHERE "spree_promotions"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_promotion_sub_menu.html.erb (3.3ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/core/app/views/spree/shared/_error_messages.html.erb (0.5ms) Spree::PromotionCategory Load (0.3ms) SELECT "spree_promotion_categories".* FROM "spree_promotion_categories" ORDER BY "spree_promotion_categories"."name" ASC Spree::PromotionAction Load (0.4ms) SELECT "spree_promotion_actions".* FROM "spree_promotion_actions" WHERE "spree_promotion_actions"."deleted_at" IS NULL AND "spree_promotion_actions"."promotion_id" = ? [["promotion_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."eligible" = 't' AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND 1=0 Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/promotions/_form.html.erb (79.7ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_edit_resource_links.html.erb (2.8ms) Spree::PromotionRule Load (0.4ms) SELECT "spree_promotion_rules".* FROM "spree_promotion_rules" WHERE "spree_promotion_rules"."promotion_id" = ? [["promotion_id", 1]] Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/promotions/_rules.html.erb (16.3ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/promotions/_actions.html.erb (6.9ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/variants/_autocomplete.js.erb (18.5ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/promotions/edit.html.erb within spree/layouts/admin (469.9ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_translations.html.erb (8.1ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_head.html.erb (3685.1ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_alert.html.erb (0.0ms) Deface: 1 overrides found for 'spree/admin/shared/_header' Deface: 'auth_admin_login_navigation_bar' matched 1 times with '[data-hook='admin_login_navigation_bar'], #admin_login_navigation_bar[data-hook]' Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree_auth_devise-e2ee95e53de6/lib/views/backend/spree/layouts/admin/_login_nav.html.erb (3.1ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_header.html.erb (59.4ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_tabs.html.erb (16.3ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_menu.html.erb (88.5ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_sub_menu.html.erb (1.3ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_content_header.html.erb (1.6ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_table_filter.html.erb (1.4ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_sidebar.html.erb (1.3ms) Completed 200 OK in 5053ms (Views: 5033.8ms | ActiveRecord: 2.9ms) Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:23 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:24 -0500 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:24 -0500 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:24 -0500 Started GET "/assets/jquery-migrate-1.0.0.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:24 -0500 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:24 -0500 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:24 -0500 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:24 -0500 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:24 -0500 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:24 -0500 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:24 -0500 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:24 -0500 Started GET "/assets/modernizr.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:24 -0500 Started GET "/assets/jquery.cookie.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:24 -0500 Started GET "/assets/jquery.delayedobserver.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:24 -0500 Started GET "/assets/jquery.jstree/jquery.jstree.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:25 -0500 Started GET "/assets/jquery.alerts/jquery.alerts.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:25 -0500 Started GET "/assets/jquery.powertip.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:25 -0500 Started GET "/assets/jquery.vAlign.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:25 -0500 Started GET "/assets/css_browser_selector_dev.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:25 -0500 Started GET "/assets/spin.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:25 -0500 Started GET "/assets/trunk8.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:25 -0500 Started GET "/assets/jquery.adaptivemenu.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:25 -0500 Started GET "/assets/equalize.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:25 -0500 Started GET "/assets/responsive-tables.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:25 -0500 Started GET "/assets/jsuri.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:25 -0500 Started GET "/assets/spree.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:25 -0500 Started GET "/assets/select2.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:25 -0500 Started GET "/assets/spree/backend/spree-select2.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:26 -0500 Started GET "/assets/spree/backend/address_states.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:26 -0500 Started GET "/assets/spree/backend/adjustments.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:26 -0500 Started GET "/assets/spree/backend/admin.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:26 -0500 Started GET "/assets/handlebars.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:26 -0500 Started GET "/assets/spree/backend/handlebar_extensions.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:26 -0500 Started GET "/assets/spree/backend/variant_autocomplete.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:26 -0500 Started GET "/assets/spree/backend/taxon_autocomplete.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:26 -0500 Started GET "/assets/spree/backend/option_type_autocomplete.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:26 -0500 Started GET "/assets/spree/backend/user_picker.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:26 -0500 Started GET "/assets/spree/backend/product_picker.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:26 -0500 Started GET "/assets/spree/backend/taxons.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:26 -0500 Started GET "/assets/spree/backend/calculator.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:26 -0500 Started GET "/assets/spree/backend/checkouts/edit.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:27 -0500 Started GET "/assets/spree/backend/gateway.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:27 -0500 Started GET "/assets/spree/backend/general_settings.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:27 -0500 Started GET "/assets/spree/backend/images/index.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:27 -0500 Started GET "/assets/spree/backend/images/new.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:27 -0500 Started GET "/assets/spree/backend/line_items.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:27 -0500 Started GET "/assets/spree/backend/line_items_on_order_edit.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:27 -0500 Started GET "/assets/spree/backend/nested-attribute.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:27 -0500 Started GET "/assets/spree/backend/orders/edit.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:27 -0500 Started GET "/assets/spree/backend/orders/edit_form.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:27 -0500 Started GET "/assets/spree/backend/payments/edit.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:27 -0500 Started GET "/assets/jquery.payment.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:27 -0500 Started GET "/assets/spree/backend/payments/new.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:27 -0500 Started GET "/assets/spree/backend/progress.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:28 -0500 Started GET "/assets/spree/backend/promotions.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:28 -0500 Started GET "/assets/spree/backend/returns/expedited_exchanges_warning.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:28 -0500 Started GET "/assets/spree/backend/returns/return_item_selection.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:28 -0500 Started GET "/assets/spree/backend/select_payments.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:28 -0500 Started GET "/assets/spree/backend/shipments.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:28 -0500 Started GET "/assets/spree/backend/states.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:28 -0500 Started GET "/assets/spree/backend/stock_management.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:28 -0500 Started GET "/assets/spree/backend/stock_movement.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:28 -0500 Started GET "/assets/spree/backend/stock_transfer.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:28 -0500 Started GET "/assets/spree/backend/taxon_tree_menu.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:28 -0500 Started GET "/assets/spree/backend/taxonomy.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:28 -0500 Started GET "/assets/spree/backend/underscore-min.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:28 -0500 Started GET "/assets/spree/backend/variant_management.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:28 -0500 Started GET "/assets/spree/backend/zone.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:29 -0500 Started GET "/assets/spree/frontend/backend.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:29 -0500 Started GET "/assets/spree/backend.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:29 -0500 Started GET "/assets/spree/backend/all.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:29 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-15 01:47:29 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-15 01:47:29 -0500 Started POST "/spree/admin/promotions/1/promotion_actions" for 127.0.0.1 at 2015-02-15 01:47:34 -0500 Processing by Spree::Admin::PromotionActionsController#create as JS Parameters: {"utf8"=>"✓", "action_type"=>"Spree::Promotion::Actions::CreateAdjustment", "button"=>"", "promotion_id"=>"1"} Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/backend_configuration/locale' LIMIT 1 Spree::User Load (0.9ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Spree::Promotion Load (0.1ms) SELECT "spree_promotions".* FROM "spree_promotions" WHERE "spree_promotions"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) begin transaction SQL (2.0ms) INSERT INTO "spree_promotion_actions" ("promotion_id", "type") VALUES (?, ?) [["promotion_id", 1], ["type", "Spree::Promotion::Actions::CreateAdjustment"]] SQL (2.3ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::PromotionAction"], ["created_at", "2015-02-15 06:47:35.158092"], ["preferences", "---\n:flat_percent: 0\n"], ["type", "Spree::Calculator::FlatPercentItemTotal"], ["updated_at", "2015-02-15 06:47:35.158092"]]  (26.1ms) commit transaction Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/core/app/views/spree/shared/_error_messages.html.erb (1.5ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/promotions/calculators/_default_fields.html.erb (2.1ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/promotions/actions/_create_adjustment.html.erb (226.5ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/promotions/_promotion_action.html.erb (421.6ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/promotion_actions/create.js.erb (510.1ms) Completed 200 OK in 732ms (Views: 596.7ms | ActiveRecord: 33.8ms) Started PUT "/spree/admin/promotions/1" for 127.0.0.1 at 2015-02-15 01:47:40 -0500 Processing by Spree::Admin::PromotionsController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"OwabX10KlJRIiIC0sAIwtCanqkzoIH/Mo+FZ4O2+eio=", "promotion"=>{"promotion_actions_attributes"=>{"1"=>{"id"=>"1", "calculator_type"=>"Spree::Calculator::FlatRate"}}}, "button"=>"", "id"=>"1"} Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/backend_configuration/locale' LIMIT 1 Spree::User Load (0.5ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Spree::Promotion Load (0.2ms) SELECT "spree_promotions".* FROM "spree_promotions" WHERE "spree_promotions"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) begin transaction Spree::PromotionAction Load (0.5ms) SELECT "spree_promotion_actions".* FROM "spree_promotion_actions" WHERE "spree_promotion_actions"."deleted_at" IS NULL AND "spree_promotion_actions"."promotion_id" = ? AND "spree_promotion_actions"."id" IN (1) [["promotion_id", 1]] Spree::Calculator Load (0.4ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::PromotionAction"]] SQL (2.3ms) DELETE FROM "spree_calculators" WHERE "spree_calculators"."type" IN ('Spree::Calculator::FlatPercentItemTotal') AND "spree_calculators"."id" = ? [["id", 7]] SQL (0.5ms) INSERT INTO "spree_calculators" ("calculable_id", "calculable_type", "created_at", "preferences", "type", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["calculable_id", 1], ["calculable_type", "Spree::PromotionAction"], ["created_at", "2015-02-15 06:47:40.781117"], ["preferences", "---\n:amount: 0\n:currency: USD\n"], ["type", "Spree::Calculator::FlatRate"], ["updated_at", "2015-02-15 06:47:40.781117"]] Spree::PromotionRule Load (0.2ms) SELECT "spree_promotion_rules".* FROM "spree_promotion_rules" WHERE "spree_promotion_rules"."promotion_id" = ? [["promotion_id", 1]]  (25.4ms) commit transaction Redirected to http://localhost:3000/spree/admin/promotions/1/edit Completed 302 Found in 84ms (ActiveRecord: 30.7ms) Started GET "/spree/admin/promotions/1/edit" for 127.0.0.1 at 2015-02-15 01:47:40 -0500 Processing by Spree::Admin::PromotionsController#edit as HTML Parameters: {"id"=>"1"} Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/backend_configuration/locale' LIMIT 1 Spree::User Load (0.5ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Spree::Promotion Load (0.2ms) SELECT "spree_promotions".* FROM "spree_promotions" WHERE "spree_promotions"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_promotion_sub_menu.html.erb (4.3ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/core/app/views/spree/shared/_error_messages.html.erb (0.6ms) Spree::PromotionCategory Load (0.3ms) SELECT "spree_promotion_categories".* FROM "spree_promotion_categories" ORDER BY "spree_promotion_categories"."name" ASC Spree::PromotionAction Load (0.2ms) SELECT "spree_promotion_actions".* FROM "spree_promotion_actions" WHERE "spree_promotion_actions"."deleted_at" IS NULL AND "spree_promotion_actions"."promotion_id" = ? [["promotion_id", 1]]  (0.4ms) SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."eligible" = 't' AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."source_id" IN (1) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/promotions/_form.html.erb (81.1ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_edit_resource_links.html.erb (2.6ms) Spree::PromotionRule Load (0.2ms) SELECT "spree_promotion_rules".* FROM "spree_promotion_rules" WHERE "spree_promotion_rules"."promotion_id" = ? [["promotion_id", 1]] Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/promotions/_rules.html.erb (9.9ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/core/app/views/spree/shared/_error_messages.html.erb (0.5ms) Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::PromotionAction"]] Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/promotions/calculators/_default_fields.html.erb (2.9ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/promotions/actions/_create_adjustment.html.erb (144.7ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/promotions/_promotion_action.html.erb (265.3ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/promotions/_actions.html.erb (321.7ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/variants/_autocomplete.js.erb (1.1ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/promotions/edit.html.erb within spree/layouts/admin (724.0ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_translations.html.erb (4.1ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_head.html.erb (3640.0ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_alert.html.erb (0.0ms) Deface: 1 overrides found for 'spree/admin/shared/_header' Deface: 'auth_admin_login_navigation_bar' matched 1 times with '[data-hook='admin_login_navigation_bar'], #admin_login_navigation_bar[data-hook]' Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree_auth_devise-e2ee95e53de6/lib/views/backend/spree/layouts/admin/_login_nav.html.erb (1.6ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_header.html.erb (56.2ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_tabs.html.erb (15.7ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_menu.html.erb (84.8ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_sub_menu.html.erb (0.5ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_content_header.html.erb (0.6ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_table_filter.html.erb (0.5ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_sidebar.html.erb (0.5ms) Completed 200 OK in 5205ms (Views: 5186.2ms | ActiveRecord: 2.5ms) Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:46 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:46 -0500 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:46 -0500 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:47 -0500 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:47 -0500 Started GET "/assets/jquery-migrate-1.0.0.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:47 -0500 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:47 -0500 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:47 -0500 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:47 -0500 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:47 -0500 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:47 -0500 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:47 -0500 Started GET "/assets/modernizr.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:47 -0500 Started GET "/assets/jquery.cookie.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:47 -0500 Started GET "/assets/jquery.delayedobserver.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:47 -0500 Started GET "/assets/jquery.jstree/jquery.jstree.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:47 -0500 Started GET "/assets/jquery.alerts/jquery.alerts.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:47 -0500 Started GET "/assets/jquery.powertip.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:48 -0500 Started GET "/assets/jquery.vAlign.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:48 -0500 Started GET "/assets/css_browser_selector_dev.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:48 -0500 Started GET "/assets/spin.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:48 -0500 Started GET "/assets/trunk8.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:48 -0500 Started GET "/assets/jquery.adaptivemenu.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:48 -0500 Started GET "/assets/equalize.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:48 -0500 Started GET "/assets/responsive-tables.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:48 -0500 Started GET "/assets/jsuri.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:48 -0500 Started GET "/assets/spree.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:48 -0500 Started GET "/assets/select2.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:48 -0500 Started GET "/assets/spree/backend/spree-select2.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:48 -0500 Started GET "/assets/spree/backend/address_states.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:48 -0500 Started GET "/assets/spree/backend/adjustments.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:49 -0500 Started GET "/assets/spree/backend/admin.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:49 -0500 Started GET "/assets/handlebars.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:49 -0500 Started GET "/assets/spree/backend/handlebar_extensions.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:49 -0500 Started GET "/assets/spree/backend/variant_autocomplete.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:49 -0500 Started GET "/assets/spree/backend/taxon_autocomplete.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:49 -0500 Started GET "/assets/spree/backend/option_type_autocomplete.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:49 -0500 Started GET "/assets/spree/backend/user_picker.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:49 -0500 Started GET "/assets/spree/backend/product_picker.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:49 -0500 Started GET "/assets/spree/backend/taxons.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:49 -0500 Started GET "/assets/spree/backend/calculator.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:49 -0500 Started GET "/assets/spree/backend/checkouts/edit.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:49 -0500 Started GET "/assets/spree/backend/gateway.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:49 -0500 Started GET "/assets/spree/backend/general_settings.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:49 -0500 Started GET "/assets/spree/backend/images/index.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:50 -0500 Started GET "/assets/spree/backend/images/new.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:50 -0500 Started GET "/assets/spree/backend/line_items.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:50 -0500 Started GET "/assets/spree/backend/line_items_on_order_edit.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:50 -0500 Started GET "/assets/spree/backend/nested-attribute.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:50 -0500 Started GET "/assets/spree/backend/orders/edit.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:50 -0500 Started GET "/assets/spree/backend/orders/edit_form.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:50 -0500 Started GET "/assets/spree/backend/payments/edit.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:50 -0500 Started GET "/assets/jquery.payment.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:50 -0500 Started GET "/assets/spree/backend/payments/new.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:50 -0500 Started GET "/assets/spree/backend/progress.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:50 -0500 Started GET "/assets/spree/backend/promotions.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:50 -0500 Started GET "/assets/spree/backend/returns/expedited_exchanges_warning.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:50 -0500 Started GET "/assets/spree/backend/returns/return_item_selection.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:50 -0500 Started GET "/assets/spree/backend/select_payments.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:51 -0500 Started GET "/assets/spree/backend/shipments.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:51 -0500 Started GET "/assets/spree/backend/states.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:51 -0500 Started GET "/assets/spree/backend/stock_management.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:51 -0500 Started GET "/assets/spree/backend/stock_movement.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:51 -0500 Started GET "/assets/spree/backend/stock_transfer.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:51 -0500 Started GET "/assets/spree/backend/taxon_tree_menu.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:51 -0500 Started GET "/assets/spree/backend/taxonomy.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:51 -0500 Started GET "/assets/spree/backend/underscore-min.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:51 -0500 Started GET "/assets/spree/backend/variant_management.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:51 -0500 Started GET "/assets/spree/backend/zone.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:51 -0500 Started GET "/assets/spree/frontend/backend.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:51 -0500 Started GET "/assets/spree/backend.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:51 -0500 Started GET "/assets/spree/backend/all.js?body=1" for 127.0.0.1 at 2015-02-15 01:47:52 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-15 01:47:52 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-15 01:47:52 -0500 Started PUT "/spree/admin/promotions/1" for 127.0.0.1 at 2015-02-15 01:47:58 -0500 Processing by Spree::Admin::PromotionsController#update as HTML Parameters: {"utf8"=>"✓", "authenticity_token"=>"OwabX10KlJRIiIC0sAIwtCanqkzoIH/Mo+FZ4O2+eio=", "promotion"=>{"promotion_actions_attributes"=>{"1"=>{"id"=>"1", "calculator_type"=>"Spree::Calculator::FlatRate", "calculator_attributes"=>{"preferred_amount"=>"10", "preferred_currency"=>"USD", "id"=>"8"}}}}, "button"=>"", "id"=>"1"} Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/backend_configuration/locale' LIMIT 1 Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Spree::Promotion Load (0.2ms) SELECT "spree_promotions".* FROM "spree_promotions" WHERE "spree_promotions"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) begin transaction Spree::PromotionAction Load (0.2ms) SELECT "spree_promotion_actions".* FROM "spree_promotion_actions" WHERE "spree_promotion_actions"."deleted_at" IS NULL AND "spree_promotion_actions"."promotion_id" = ? AND "spree_promotion_actions"."id" IN (1) [["promotion_id", 1]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::PromotionAction"]] Spree::PromotionRule Load (0.1ms) SELECT "spree_promotion_rules".* FROM "spree_promotion_rules" WHERE "spree_promotion_rules"."promotion_id" = ? [["promotion_id", 1]] SQL (0.8ms) UPDATE "spree_calculators" SET "preferences" = ?, "updated_at" = ? WHERE "spree_calculators"."id" = 8 [["preferences", "---\n:amount: !ruby/object:BigDecimal 18:0.1E2\n:currency: USD\n"], ["updated_at", "2015-02-15 06:47:58.111884"]]  (99.8ms) commit transaction Redirected to http://localhost:3000/spree/admin/promotions/1/edit Completed 302 Found in 143ms (ActiveRecord: 102.4ms) Started GET "/spree/admin/promotions/1/edit" for 127.0.0.1 at 2015-02-15 01:47:58 -0500 Processing by Spree::Admin::PromotionsController#edit as HTML Parameters: {"id"=>"1"} Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/backend_configuration/locale' LIMIT 1 Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]] Spree::Promotion Load (0.2ms) SELECT "spree_promotions".* FROM "spree_promotions" WHERE "spree_promotions"."id" = ? LIMIT 1 [["id", 1]] Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_promotion_sub_menu.html.erb (3.1ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/core/app/views/spree/shared/_error_messages.html.erb (0.7ms) Spree::PromotionCategory Load (0.4ms) SELECT "spree_promotion_categories".* FROM "spree_promotion_categories" ORDER BY "spree_promotion_categories"."name" ASC Spree::PromotionAction Load (0.2ms) SELECT "spree_promotion_actions".* FROM "spree_promotion_actions" WHERE "spree_promotion_actions"."deleted_at" IS NULL AND "spree_promotion_actions"."promotion_id" = ? [["promotion_id", 1]]  (0.5ms) SELECT COUNT(*) FROM "spree_adjustments" WHERE "spree_adjustments"."eligible" = 't' AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."source_id" IN (1) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/promotions/_form.html.erb (81.6ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_edit_resource_links.html.erb (3.2ms) Spree::PromotionRule Load (0.2ms) SELECT "spree_promotion_rules".* FROM "spree_promotion_rules" WHERE "spree_promotion_rules"."promotion_id" = ? [["promotion_id", 1]] Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/promotions/_rules.html.erb (8.7ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/core/app/views/spree/shared/_error_messages.html.erb (0.5ms) Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::PromotionAction"]] Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/promotions/calculators/_default_fields.html.erb (1.9ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/promotions/actions/_create_adjustment.html.erb (156.1ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/promotions/_promotion_action.html.erb (298.1ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/promotions/_actions.html.erb (366.1ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/variants/_autocomplete.js.erb (1.0ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/promotions/edit.html.erb within spree/layouts/admin (779.0ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_translations.html.erb (4.1ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_head.html.erb (4084.6ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_alert.html.erb (0.0ms) Deface: 1 overrides found for 'spree/admin/shared/_header' Deface: 'auth_admin_login_navigation_bar' matched 1 times with '[data-hook='admin_login_navigation_bar'], #admin_login_navigation_bar[data-hook]' Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree_auth_devise-e2ee95e53de6/lib/views/backend/spree/layouts/admin/_login_nav.html.erb (1.6ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_header.html.erb (55.0ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_tabs.html.erb (14.8ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_menu.html.erb (83.3ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_sub_menu.html.erb (0.5ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_content_header.html.erb (0.5ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_table_filter.html.erb (0.5ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/backend/app/views/spree/admin/shared/_sidebar.html.erb (0.5ms) Completed 200 OK in 5691ms (Views: 5672.6ms | ActiveRecord: 2.7ms) Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:04 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:04 -0500 Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:04 -0500 Started GET "/assets/jquery-migrate-1.0.0.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:04 -0500 Started GET "/assets/jquery-ui/datepicker.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:04 -0500 Started GET "/assets/jquery-ui/core.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:04 -0500 Started GET "/assets/jquery-ui/widget.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:04 -0500 Started GET "/assets/jquery-ui/mouse.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:04 -0500 Started GET "/assets/jquery-ui/sortable.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:05 -0500 Started GET "/assets/jquery-ui/position.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:05 -0500 Started GET "/assets/jquery-ui/menu.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:05 -0500 Started GET "/assets/jquery-ui/autocomplete.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:05 -0500 Started GET "/assets/modernizr.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:05 -0500 Started GET "/assets/jquery.cookie.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:05 -0500 Started GET "/assets/jquery.delayedobserver.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:05 -0500 Started GET "/assets/jquery.jstree/jquery.jstree.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:05 -0500 Started GET "/assets/jquery.alerts/jquery.alerts.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:05 -0500 Started GET "/assets/jquery.powertip.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:05 -0500 Started GET "/assets/jquery.vAlign.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:05 -0500 Started GET "/assets/css_browser_selector_dev.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:05 -0500 Started GET "/assets/spin.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:05 -0500 Started GET "/assets/trunk8.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:05 -0500 Started GET "/assets/jquery.adaptivemenu.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:06 -0500 Started GET "/assets/equalize.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:06 -0500 Started GET "/assets/responsive-tables.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:06 -0500 Started GET "/assets/jsuri.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:06 -0500 Started GET "/assets/spree.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:06 -0500 Started GET "/assets/select2.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:06 -0500 Started GET "/assets/spree/backend/spree-select2.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:06 -0500 Started GET "/assets/spree/backend/address_states.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:06 -0500 Started GET "/assets/spree/backend/adjustments.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:06 -0500 Started GET "/assets/spree/backend/admin.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:06 -0500 Started GET "/assets/handlebars.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:06 -0500 Started GET "/assets/spree/backend/handlebar_extensions.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:06 -0500 Started GET "/assets/spree/backend/variant_autocomplete.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:06 -0500 Started GET "/assets/spree/backend/taxon_autocomplete.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:06 -0500 Started GET "/assets/spree/backend/option_type_autocomplete.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:07 -0500 Started GET "/assets/spree/backend/user_picker.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:07 -0500 Started GET "/assets/spree/backend/product_picker.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:07 -0500 Started GET "/assets/spree/backend/taxons.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:07 -0500 Started GET "/assets/spree/backend/calculator.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:07 -0500 Started GET "/assets/spree/backend/checkouts/edit.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:07 -0500 Started GET "/assets/spree/backend/gateway.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:07 -0500 Started GET "/assets/spree/backend/general_settings.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:07 -0500 Started GET "/assets/spree/backend/images/index.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:07 -0500 Started GET "/assets/spree/backend/images/new.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:07 -0500 Started GET "/assets/spree/backend/line_items.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:07 -0500 Started GET "/assets/spree/backend/line_items_on_order_edit.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:07 -0500 Started GET "/assets/spree/backend/nested-attribute.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:07 -0500 Started GET "/assets/spree/backend/orders/edit.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:08 -0500 Started GET "/assets/spree/backend/orders/edit_form.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:08 -0500 Started GET "/assets/spree/backend/payments/edit.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:08 -0500 Started GET "/assets/jquery.payment.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:08 -0500 Started GET "/assets/spree/backend/payments/new.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:08 -0500 Started GET "/assets/spree/backend/progress.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:08 -0500 Started GET "/assets/spree/backend/promotions.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:08 -0500 Started GET "/assets/spree/backend/returns/expedited_exchanges_warning.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:08 -0500 Started GET "/assets/spree/backend/returns/return_item_selection.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:08 -0500 Started GET "/assets/spree/backend/select_payments.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:08 -0500 Started GET "/assets/spree/backend/shipments.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:08 -0500 Started GET "/assets/spree/backend/states.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:08 -0500 Started GET "/assets/spree/backend/stock_management.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:08 -0500 Started GET "/assets/spree/backend/stock_movement.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:08 -0500 Started GET "/assets/spree/backend/stock_transfer.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:09 -0500 Started GET "/assets/spree/backend/taxon_tree_menu.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:09 -0500 Started GET "/assets/spree/backend/taxonomy.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:09 -0500 Started GET "/assets/spree/backend/underscore-min.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:09 -0500 Started GET "/assets/spree/backend/variant_management.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:09 -0500 Started GET "/assets/spree/backend/zone.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:09 -0500 Started GET "/assets/spree/frontend/backend.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:09 -0500 Started GET "/assets/spree/backend.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:09 -0500 Started GET "/assets/spree/backend/all.js?body=1" for 127.0.0.1 at 2015-02-15 01:48:09 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-15 01:48:09 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-15 01:48:09 -0500 Started GET "/" for 127.0.0.1 at 2015-02-15 01:52:23 -0500 Processing by Sprangular::HomeController#index as HTML Spree::User Load (0.3ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.2ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.3ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.3ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.4ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 35]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 36]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.5ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 24]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.5ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.6ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.4ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (1341.3ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (578.0ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (2551.3ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (235.1ms) Spree::Tracker Load (0.2ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (5.3ms) Completed 200 OK in 6451ms (Views: 6333.6ms | ActiveRecord: 33.9ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-15 01:52:32 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-15 01:52:32 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:32 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:32 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:32 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:32 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:32 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:32 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:32 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:32 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:32 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:32 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:32 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:32 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:32 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:32 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:32 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:33 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:33 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:33 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:33 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:33 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:33 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:33 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:33 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:33 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:33 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:33 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:33 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:33 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:33 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:33 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:33 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:33 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:33 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:33 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:34 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:34 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:34 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:34 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:34 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:34 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:34 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:34 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:34 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:34 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:34 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:34 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:34 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:34 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:34 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:34 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:34 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:34 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:34 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:35 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:35 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:35 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:35 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:35 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:35 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:35 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:35 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:35 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:35 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:35 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:35 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:35 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:35 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:35 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:35 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:35 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:35 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:35 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:36 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:36 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:36 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:36 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:36 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:36 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:36 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:36 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:36 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:36 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:36 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:36 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:36 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-15 01:52:36 -0500 Started GET "/api/products?page=1&per_page=12" for 127.0.0.1 at 2015-02-15 01:52:37 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12"} Spree::User Load (0.8ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (2.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (0.6ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 06:52:37.732438') AND ("spree_products".available_on <= '2015-02-15 06:52:37.733641') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0) subquery_for_count  (0.8ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 06:52:37.732438') AND ("spree_products".available_on <= '2015-02-15 06:52:37.733641') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (0.9ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 06:52:37.732438') AND ("spree_products".available_on <= '2015-02-15 06:52:37.733641') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (1.7ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.5ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Taxon Load (1.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (1.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Image Load (1.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.4ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Price Load (0.9ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::ProductProperty Load (1.7ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY spree_product_properties.position Spree::Property Load (0.7ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.9ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_variants".position ASC Spree::Image Load (1.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.5ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.1ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.3ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.5ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 9]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 9]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 9]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 11]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 11]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 11]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 12]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 12]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 12]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (5884.8ms) Completed 200 OK in 5951ms (Views: 5850.9ms | ActiveRecord: 56.1ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-15 01:52:43 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-15 01:52:43 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (1.0ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (317.0ms) Completed 200 OK in 398ms (Views: 338.4ms | ActiveRecord: 14.2ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-15 01:52:44 -0500 Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-15 01:52:44 -0500 Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-15 01:52:44 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.7ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (3.6ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (16.4ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (287.8ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.5ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1704.7ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-15 01:52:46 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-15 01:52:46 -0500 Started PUT "/api/checkouts/R079133342/quick_update" for 127.0.0.1 at 2015-02-15 01:53:03 -0500 Processing by Spree::Api::CheckoutsController#quick_update as JSON Parameters: {"order"=>{"coupon_code"=>"10off"}, "id"=>"R079133342"} Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1  (0.4ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]]  (0.1ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1 Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]]  (0.1ms) begin transaction Spree::Order Exists (0.4ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.8ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "cart"], ["updated_at", "2015-02-15 06:53:03.384769"]]  (29.9ms) commit transaction  (0.1ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.2ms) commit transaction Spree::Shipment Exists (0.3ms) SELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? LIMIT 1 [["order_id", 6]] Spree::User Load (0.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = ? LIMIT 1 [["id", 1]]  (0.2ms) begin transaction CACHE (0.1ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.8ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "address"], ["updated_at", "2015-02-15 06:53:03.455011"]]  (17.8ms) commit transaction  (0.2ms) begin transaction SQL (1.8ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:53:03.500439"], ["name", "order"], ["next_state", "address"], ["previous_state", "cart"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-15 06:53:03.500439"], ["user_id", 1]]  (16.7ms) commit transaction  (0.1ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.2ms) commit transaction Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 36]] SQL (0.6ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 38) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 434)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::TaxRate Load (0.5ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.3ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.5ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.4ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::LineItem' AND "spree_adjustments"."adjustable_id" IN (24) AND "spree_adjustments"."source_type" = 'Spree::TaxRate'  (0.1ms) begin transaction SQL (2.9ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 97]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 24]] SQL (0.5ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:53:03.749969' WHERE "spree_line_items"."id" = 24 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:53:03.755033' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (1.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.7ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] SQL (0.5ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:53:03.776573' WHERE "spree_line_items"."id" = 24  (17.8ms) commit transaction SQL (15.2ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 22.99 WHERE "spree_line_items"."id" = 24 Spree::Calculator Load (0.5ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]]  (0.2ms) begin transaction Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (2.6ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"], ["amount", 1.15], ["created_at", "2015-02-15 06:53:03.865728"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 06:53:03.865728"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.4ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 24]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.3ms) UPDATE "spree_adjustments" SET "amount" = 1.15, "updated_at" = '2015-02-15 06:53:03.891302' WHERE "spree_adjustments"."id" = 98 SQL (0.7ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.15, "adjustment_total" = 1.15, "updated_at" = '2015-02-15 06:53:03.898781' WHERE "spree_line_items"."id" = 24 SQL (0.3ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:53:03.901462' WHERE "spree_line_items"."id" = 24 SQL (0.7ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:53:03.903465' WHERE "spree_orders"."id" = 6  (133.3ms) commit transaction Spree::Shipment Exists (0.2ms) SELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? LIMIT 1 [["order_id", 6]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 35]]  (0.2ms) begin transaction Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]]  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]]  (0.1ms) begin transaction CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]]  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction SQL (0.3ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."adjustable_type" = 'Spree::Shipment' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Shipment Load (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.5ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."active" = 't' Spree::StockItem Exists (0.4ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" IN (2) LIMIT 1 [["stock_location_id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 2 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 2 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.3ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.6ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.5ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.5ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.4ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 2], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (1.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] CACHE (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (1.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 3], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] CACHE (0.1ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.4ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 4], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 4]] Spree::ZoneMember Load (0.8ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 5], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 5]] CACHE (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.2ms) begin transaction  (0.3ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H08204076312%') Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] SQL (2.3ms) INSERT INTO "spree_shipments" ("address_id", "created_at", "number", "order_id", "state", "stock_location_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address_id", 36], ["created_at", "2015-02-15 06:53:04.586300"], ["number", "H08204076312"], ["order_id", 6], ["state", "pending"], ["stock_location_id", 1], ["updated_at", "2015-02-15 06:53:04.586300"]] SQL (1.6ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 5.0], ["created_at", "2015-02-15 06:53:04.591547"], ["selected", "t"], ["shipment_id", 20], ["shipping_method_id", 1], ["updated_at", "2015-02-15 06:53:04.591547"]] SQL (0.3ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost", 10.0], ["created_at", "2015-02-15 06:53:04.596323"], ["shipment_id", 20], ["shipping_method_id", 2], ["updated_at", "2015-02-15 06:53:04.596323"]] SQL (0.6ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost", 15.0], ["created_at", "2015-02-15 06:53:04.599181"], ["shipment_id", 20], ["shipping_method_id", 3], ["updated_at", "2015-02-15 06:53:04.599181"]] SQL (1.8ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:53:04.602649"], ["line_item_id", 24], ["order_id", 6], ["shipment_id", 20], ["state", "on_hand"], ["updated_at", "2015-02-15 06:53:04.602649"], ["variant_id", 2]] SQL (0.3ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-15 06:53:04.606762' WHERE "spree_shipments"."id" = 20 SQL (0.8ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:53:04.608503' WHERE "spree_orders"."id" = 6 SQL (0.3ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:53:04.611708' WHERE "spree_orders"."id" = 6  (20.7ms) commit transaction Spree::ShippingRate Load (0.5ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 20]] CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 20]] Spree::Adjustment Load (1.8ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 20], ["adjustable_type", "Spree::Shipment"]] SQL (19.7ms) UPDATE "spree_shipments" SET "cost" = 5.0, "adjustment_total" = 0, "updated_at" = '2015-02-15 06:53:04.650063' WHERE "spree_shipments"."id" = 20  (0.6ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (15.5ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 22.99, "item_count" = 1, "adjustment_total" = 1.15, "included_tax_total" = 0.0, "additional_tax_total" = 1.15, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 29.14, "updated_at" = '2015-02-15 06:53:04.685517' WHERE "spree_orders"."id" = 6  (0.2ms) begin transaction Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (1.0ms) UPDATE "spree_orders" SET "shipment_total" = ?, "state" = ?, "total" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["shipment_total", 5.0], ["state", "delivery"], ["total", 29.14], ["updated_at", "2015-02-15 06:53:04.722941"]]  (13.1ms) commit transaction  (0.1ms) begin transaction SQL (1.9ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:53:04.743125"], ["name", "order"], ["next_state", "delivery"], ["previous_state", "address"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-15 06:53:04.743125"], ["user_id", 1]]  (19.1ms) commit transaction  (0.1ms) begin transaction Spree::Order Exists (0.4ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.3ms) commit transaction  (0.4ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.3ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order')) Spree::LineItem Load (0.7ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (24) Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 24]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (15.7ms) UPDATE "spree_adjustments" SET "amount" = 1.15, "updated_at" = '2015-02-15 06:53:04.820425' WHERE "spree_adjustments"."id" = 98 SQL (18.7ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.15, "adjustment_total" = 1.15, "updated_at" = '2015-02-15 06:53:04.837744' WHERE "spree_line_items"."id" = 24  (0.4ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.4ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.3ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.5ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (14.7ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 22.99, "item_count" = 1, "adjustment_total" = 1.15, "included_tax_total" = 0.0, "additional_tax_total" = 1.15, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 29.14, "updated_at" = '2015-02-15 06:53:04.880512' WHERE "spree_orders"."id" = 6 Spree::ShippingRate Load (0.4ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 20]] CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 20]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 20], ["adjustable_type", "Spree::Shipment"]] SQL (15.6ms) UPDATE "spree_shipments" SET "cost" = 5.0, "adjustment_total" = 0, "updated_at" = '2015-02-15 06:53:04.904719' WHERE "spree_shipments"."id" = 20  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (16.0ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 22.99, "item_count" = 1, "adjustment_total" = 1.15, "included_tax_total" = 0.0, "additional_tax_total" = 1.15, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 29.14, "updated_at" = '2015-02-15 06:53:04.923762' WHERE "spree_orders"."id" = 6 Spree::TaxRate Load (0.5ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.6ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.5ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::LineItem' AND "spree_adjustments"."adjustable_id" IN (24) AND "spree_adjustments"."source_type" = 'Spree::TaxRate'  (0.2ms) begin transaction SQL (2.3ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 98]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 24]] SQL (0.5ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:53:04.967067' WHERE "spree_line_items"."id" = 24 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:53:04.971455' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] SQL (0.5ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:53:04.982676' WHERE "spree_line_items"."id" = 24  (15.5ms) commit transaction SQL (16.2ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 22.99 WHERE "spree_line_items"."id" = 24 Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]]  (0.1ms) begin transaction Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (2.5ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"], ["amount", 1.15], ["created_at", "2015-02-15 06:53:05.033388"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 06:53:05.033388"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 24]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.2ms) UPDATE "spree_adjustments" SET "amount" = 1.15, "updated_at" = '2015-02-15 06:53:05.057354' WHERE "spree_adjustments"."id" = 99 SQL (0.8ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.15, "adjustment_total" = 1.15, "updated_at" = '2015-02-15 06:53:05.058892' WHERE "spree_line_items"."id" = 24 SQL (0.4ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:53:05.061774' WHERE "spree_line_items"."id" = 24 SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:53:05.064170' WHERE "spree_orders"."id" = 6  (33.2ms) commit transaction Spree::TaxRate Load (0.4ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.3ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.4ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 20]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 20], ["adjustable_type", "Spree::Shipment"]]  (0.4ms) SELECT "spree_promotion_actions"."promotion_id" FROM "spree_promotion_actions" WHERE "spree_promotion_actions"."type" IN ('Spree::Promotion::Actions::FreeShipping') AND "spree_promotion_actions"."deleted_at" IS NULL Spree::Promotion Load (0.6ms) SELECT "spree_promotions".* FROM "spree_promotions" WHERE (starts_at IS NULL OR starts_at < '2015-02-15 06:53:05.150932') AND (expires_at IS NULL OR expires_at > '2015-02-15 06:53:05.151776') AND 1=0 AND "spree_promotions"."code" IS NULL AND "spree_promotions"."path" IS NULL Spree::Shipment Load (0.4ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 20]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 20], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 20], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 20], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 20], ["adjustable_type", "Spree::Shipment"]] SQL (28.1ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:53:05.175553' WHERE "spree_shipments"."id" = 20  (0.3ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (279.9ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 22.99, "item_count" = 1, "adjustment_total" = 1.15, "included_tax_total" = 0.0, "additional_tax_total" = 1.15, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 29.14, "updated_at" = '2015-02-15 06:53:05.208497' WHERE "spree_orders"."id" = 6  (0.1ms) begin transaction Spree::Order Exists (0.4ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.7ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "payment"], ["updated_at", "2015-02-15 06:53:05.503341"]]  (14.2ms) commit transaction  (0.2ms) begin transaction SQL (2.0ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:53:05.523740"], ["name", "order"], ["next_state", "payment"], ["previous_state", "delivery"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-15 06:53:05.523740"], ["user_id", 1]]  (15.2ms) commit transaction  (0.2ms) begin transaction Spree::Order Exists (0.4ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.2ms) commit transaction  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.3ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order')) Spree::LineItem Load (0.5ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (24) Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 24]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (14.2ms) UPDATE "spree_adjustments" SET "amount" = 1.15, "updated_at" = '2015-02-15 06:53:05.592872' WHERE "spree_adjustments"."id" = 99 SQL (16.6ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.15, "adjustment_total" = 1.15, "updated_at" = '2015-02-15 06:53:05.609383' WHERE "spree_line_items"."id" = 24  (0.3ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.1ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.5ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (14.2ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 22.99, "item_count" = 1, "adjustment_total" = 1.15, "included_tax_total" = 0.0, "additional_tax_total" = 1.15, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 29.14, "updated_at" = '2015-02-15 06:53:05.650768' WHERE "spree_orders"."id" = 6  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 24]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::StockLocation Load (0.5ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.4ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 20]] Spree::ShippingMethod Load (0.4ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 20]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 20]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.7ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 20]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.5ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.3ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.5ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 20]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 24]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.4ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.3ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (1647.9ms) Completed 200 OK in 4279ms (Views: 1930.1ms | ActiveRecord: 967.6ms) Started PUT "/api/checkouts/R079133342/quick_update" for 127.0.0.1 at 2015-02-15 01:53:24 -0500 Processing by Spree::Api::CheckoutsController#quick_update as JSON Parameters: {"order"=>{"coupon_code"=>"10off"}, "id"=>"R079133342"} Spree::User Load (1.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Order Load (1.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Order Load (1.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."number" = 'R079133342' LIMIT 1 Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT COUNT(*) FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? AND "spree_roles"."name" = 'admin' [["user_id", 1]]  (0.1ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.8ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "cart"], ["updated_at", "2015-02-15 06:53:24.899311"]]  (18.7ms) commit transaction  (0.2ms) begin transaction Spree::Order Exists (0.6ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.2ms) commit transaction Spree::Shipment Exists (0.2ms) SELECT 1 AS one FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? LIMIT 1 [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 20]] CACHE (0.1ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 20]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 20], ["adjustable_type", "Spree::Shipment"]] SQL (13.5ms) UPDATE "spree_shipments" SET "cost" = 5.0, "adjustment_total" = 0, "updated_at" = '2015-02-15 06:53:24.948787' WHERE "spree_shipments"."id" = 20  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (15.4ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 22.99, "item_count" = 1, "adjustment_total" = 1.15, "included_tax_total" = 0.0, "additional_tax_total" = 1.15, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 29.14, "updated_at" = '2015-02-15 06:53:24.966332' WHERE "spree_orders"."id" = 6 Spree::User Load (0.3ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = ? LIMIT 1 [["id", 1]]  (0.1ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (1.1ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "address"], ["updated_at", "2015-02-15 06:53:24.996800"]]  (14.4ms) commit transaction  (0.2ms) begin transaction SQL (1.7ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:53:25.019189"], ["name", "order"], ["next_state", "address"], ["previous_state", "cart"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-15 06:53:25.019189"], ["user_id", 1]]  (13.9ms) commit transaction  (0.1ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.3ms) commit transaction Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 36]] SQL (0.6ms) SELECT "spree_zones"."id" AS t0_r0, "spree_zones"."name" AS t0_r1, "spree_zones"."description" AS t0_r2, "spree_zones"."default_tax" AS t0_r3, "spree_zones"."zone_members_count" AS t0_r4, "spree_zones"."created_at" AS t0_r5, "spree_zones"."updated_at" AS t0_r6, "spree_zone_members"."id" AS t1_r0, "spree_zone_members"."zoneable_id" AS t1_r1, "spree_zone_members"."zoneable_type" AS t1_r2, "spree_zone_members"."zone_id" AS t1_r3, "spree_zone_members"."created_at" AS t1_r4, "spree_zone_members"."updated_at" AS t1_r5 FROM "spree_zones" LEFT OUTER JOIN "spree_zone_members" ON "spree_zone_members"."zone_id" = "spree_zones"."id" WHERE ((spree_zone_members.zoneable_type = 'Spree::Country' AND spree_zone_members.zoneable_id = 38) OR (spree_zone_members.zoneable_type = 'Spree::State' AND spree_zone_members.zoneable_id = 434)) ORDER BY spree_zones.zone_members_count, spree_zones.created_at Spree::TaxRate Load (0.7ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.6ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.4ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.8ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::LineItem' AND "spree_adjustments"."adjustable_id" IN (24) AND "spree_adjustments"."source_type" = 'Spree::TaxRate'  (0.2ms) begin transaction SQL (2.9ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 99]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 24]] SQL (0.7ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:53:25.094119' WHERE "spree_line_items"."id" = 24 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.7ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:53:25.099164' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] SQL (0.4ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:53:25.109285' WHERE "spree_line_items"."id" = 24  (21.2ms) commit transaction SQL (14.0ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 22.99 WHERE "spree_line_items"."id" = 24 Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]]  (0.1ms) begin transaction Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (3.6ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"], ["amount", 1.15], ["created_at", "2015-02-15 06:53:25.160443"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 06:53:25.160443"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.1ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 24]] Spree::Calculator Load (0.1ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.2ms) UPDATE "spree_adjustments" SET "amount" = 1.15, "updated_at" = '2015-02-15 06:53:25.185646' WHERE "spree_adjustments"."id" = 100 SQL (0.6ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.15, "adjustment_total" = 1.15, "updated_at" = '2015-02-15 06:53:25.187324' WHERE "spree_line_items"."id" = 24 SQL (0.3ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:53:25.189470' WHERE "spree_line_items"."id" = 24 SQL (0.5ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:53:25.191167' WHERE "spree_orders"."id" = 6  (19.1ms) commit transaction Spree::TaxRate Load (0.5ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.4ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.3ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.4ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 20]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 20], ["adjustable_type", "Spree::Shipment"]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] Spree::Address Load (0.1ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 35]]  (0.1ms) begin transaction Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]]  (0.2ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]]  (0.2ms) begin transaction CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]]  (0.1ms) commit transaction  (0.1ms) begin transaction  (0.1ms) commit transaction SQL (0.2ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."adjustable_type" = 'Spree::Shipment' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.2ms) begin transaction SQL (0.2ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 20], ["adjustable_type", "Spree::Shipment"]] SQL (1.9ms) DELETE FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 20]] SQL (2.8ms) DELETE FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? [["shipment_id", 20]] SQL (1.7ms) DELETE FROM "spree_shipments" WHERE "spree_shipments"."id" = ? [["id", 20]] SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:53:25.283499' WHERE "spree_orders"."id" = 6  (27.9ms) commit transaction Spree::StockLocation Load (0.6ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."active" = 't' Spree::StockItem Exists (0.2ms) SELECT 1 AS one FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" IN (2) LIMIT 1 [["stock_location_id", 1]] Spree::StockItem Load (0.2ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 2 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."stock_location_id" = ? AND "spree_stock_items"."variant_id" = 2 ORDER BY "spree_stock_items"."id" ASC LIMIT 1 [["stock_location_id", 1]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" WHERE "spree_shipping_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_methods"."id" = "spree_shipping_method_categories"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_method_categories"."shipping_category_id" = ? [["shipping_category_id", 1]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ZoneMember Load (0.2ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 2], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] CACHE (0.2ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 3], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] CACHE (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 2]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 4], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 4]] Spree::ZoneMember Load (0.5ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 5], ["calculable_type", "Spree::ShippingMethod"]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 5]] CACHE (0.0ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" = ? [["zone_id", 1]]  (0.3ms) begin transaction  (0.4ms) SELECT COUNT(*) FROM "spree_shipments" WHERE (spree_shipments.number LIKE 'H70354235477%') Spree::Country Load (0.2ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] SQL (2.2ms) INSERT INTO "spree_shipments" ("address_id", "created_at", "number", "order_id", "state", "stock_location_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address_id", 36], ["created_at", "2015-02-15 06:53:25.427261"], ["number", "H70354235477"], ["order_id", 6], ["state", "pending"], ["stock_location_id", 1], ["updated_at", "2015-02-15 06:53:25.427261"]] SQL (2.0ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "selected", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["cost", 5.0], ["created_at", "2015-02-15 06:53:25.433753"], ["selected", "t"], ["shipment_id", 21], ["shipping_method_id", 1], ["updated_at", "2015-02-15 06:53:25.433753"]] SQL (0.3ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost", 10.0], ["created_at", "2015-02-15 06:53:25.439768"], ["shipment_id", 21], ["shipping_method_id", 2], ["updated_at", "2015-02-15 06:53:25.439768"]] SQL (1.0ms) INSERT INTO "spree_shipping_rates" ("cost", "created_at", "shipment_id", "shipping_method_id", "updated_at") VALUES (?, ?, ?, ?, ?) [["cost", 15.0], ["created_at", "2015-02-15 06:53:25.443358"], ["shipment_id", 21], ["shipping_method_id", 3], ["updated_at", "2015-02-15 06:53:25.443358"]] SQL (2.4ms) INSERT INTO "spree_inventory_units" ("created_at", "line_item_id", "order_id", "shipment_id", "state", "updated_at", "variant_id") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:53:25.448788"], ["line_item_id", 24], ["order_id", 6], ["shipment_id", 21], ["state", "on_hand"], ["updated_at", "2015-02-15 06:53:25.448788"], ["variant_id", 2]] SQL (0.4ms) UPDATE "spree_shipments" SET "updated_at" = '2015-02-15 06:53:25.454833' WHERE "spree_shipments"."id" = 21 SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:53:25.457661' WHERE "spree_orders"."id" = 6 SQL (0.3ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:53:25.460036' WHERE "spree_orders"."id" = 6  (17.3ms) commit transaction Spree::ShippingRate Load (0.4ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 21]] CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 21]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 21], ["adjustable_type", "Spree::Shipment"]] SQL (17.4ms) UPDATE "spree_shipments" SET "cost" = 5.0, "adjustment_total" = 0, "updated_at" = '2015-02-15 06:53:25.488591' WHERE "spree_shipments"."id" = 21  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (19.6ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 22.99, "item_count" = 1, "adjustment_total" = 1.15, "included_tax_total" = 0.0, "additional_tax_total" = 1.15, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 29.14, "updated_at" = '2015-02-15 06:53:25.509477' WHERE "spree_orders"."id" = 6  (0.2ms) begin transaction Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::State Load (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Order Exists (0.2ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (1.0ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "delivery"], ["updated_at", "2015-02-15 06:53:25.549111"]]  (13.6ms) commit transaction  (0.2ms) begin transaction SQL (2.1ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:53:25.570821"], ["name", "order"], ["next_state", "delivery"], ["previous_state", "address"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-15 06:53:25.570821"], ["user_id", 1]]  (16.9ms) commit transaction  (0.2ms) begin transaction Spree::Order Exists (0.4ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.2ms) commit transaction  (0.2ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.2ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order')) Spree::LineItem Load (0.7ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (24) Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 24]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (90.3ms) UPDATE "spree_adjustments" SET "amount" = 1.15, "updated_at" = '2015-02-15 06:53:25.644289' WHERE "spree_adjustments"."id" = 100 SQL (18.3ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.15, "adjustment_total" = 1.15, "updated_at" = '2015-02-15 06:53:25.737225' WHERE "spree_line_items"."id" = 24  (0.2ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.2ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (19.7ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 22.99, "item_count" = 1, "adjustment_total" = 1.15, "included_tax_total" = 0.0, "additional_tax_total" = 1.15, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 29.14, "updated_at" = '2015-02-15 06:53:25.776848' WHERE "spree_orders"."id" = 6 Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 21]] CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 21]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."included" = 'f' [["adjustable_id", 21], ["adjustable_type", "Spree::Shipment"]] SQL (15.8ms) UPDATE "spree_shipments" SET "cost" = 5.0, "adjustment_total" = 0, "updated_at" = '2015-02-15 06:53:25.805849' WHERE "spree_shipments"."id" = 21  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (13.9ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 22.99, "item_count" = 1, "adjustment_total" = 1.15, "included_tax_total" = 0.0, "additional_tax_total" = 1.15, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 29.14, "updated_at" = '2015-02-15 06:53:25.825221' WHERE "spree_orders"."id" = 6 Spree::TaxRate Load (0.5ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.5ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.5ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.2ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_type" = 'Spree::LineItem' AND "spree_adjustments"."adjustable_id" IN (24) AND "spree_adjustments"."source_type" = 'Spree::TaxRate'  (0.1ms) begin transaction SQL (2.2ms) DELETE FROM "spree_adjustments" WHERE "spree_adjustments"."id" = ? [["id", 100]] Spree::LineItem Load (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 24]] SQL (0.6ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:53:25.865309' WHERE "spree_line_items"."id" = 24 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (0.7ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:53:25.869838' WHERE "spree_orders"."id" = 6 Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] SQL (0.3ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:53:25.935255' WHERE "spree_line_items"."id" = 24  (31.0ms) commit transaction SQL (272.9ms) UPDATE "spree_line_items" SET "pre_tax_amount" = 22.99 WHERE "spree_line_items"."id" = 24 Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]]  (0.1ms) begin transaction Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] SQL (3.4ms) INSERT INTO "spree_adjustments" ("adjustable_id", "adjustable_type", "amount", "created_at", "label", "order_id", "source_id", "source_type", "state", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"], ["amount", 1.15], ["created_at", "2015-02-15 06:53:26.255315"], ["label", "North America 5.0%"], ["order_id", 6], ["source_id", 1], ["source_type", "Spree::TaxRate"], ["state", "open"], ["updated_at", "2015-02-15 06:53:26.255315"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 24]] Spree::Calculator Load (0.3ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (0.2ms) UPDATE "spree_adjustments" SET "amount" = 1.15, "updated_at" = '2015-02-15 06:53:26.285751' WHERE "spree_adjustments"."id" = 101 SQL (0.6ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.15, "adjustment_total" = 1.15, "updated_at" = '2015-02-15 06:53:26.287498' WHERE "spree_line_items"."id" = 24 SQL (0.3ms) UPDATE "spree_line_items" SET "updated_at" = '2015-02-15 06:53:26.289640' WHERE "spree_line_items"."id" = 24 SQL (0.6ms) UPDATE "spree_orders" SET "updated_at" = '2015-02-15 06:53:26.291476' WHERE "spree_orders"."id" = 6  (17.5ms) commit transaction Spree::TaxRate Load (0.7ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL Spree::Zone Load (0.6ms) SELECT "spree_zones".* FROM "spree_zones" WHERE "spree_zones"."id" IN (2) Spree::ZoneMember Load (0.4ms) SELECT "spree_zone_members".* FROM "spree_zone_members" WHERE "spree_zone_members"."zone_id" IN (2) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (232, 38) Spree::TaxCategory Load (0.3ms) SELECT "spree_tax_categories".* FROM "spree_tax_categories" WHERE "spree_tax_categories"."deleted_at" IS NULL AND "spree_tax_categories"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.4ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 21]] Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE 1=0 AND "spree_adjustments"."source_type" = 'Spree::TaxRate' Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' [["adjustable_id", 21], ["adjustable_type", "Spree::Shipment"]]  (0.3ms) SELECT "spree_promotion_actions"."promotion_id" FROM "spree_promotion_actions" WHERE "spree_promotion_actions"."type" IN ('Spree::Promotion::Actions::FreeShipping') AND "spree_promotion_actions"."deleted_at" IS NULL Spree::Promotion Load (0.6ms) SELECT "spree_promotions".* FROM "spree_promotions" WHERE (starts_at IS NULL OR starts_at < '2015-02-15 06:53:26.339416') AND (expires_at IS NULL OR expires_at > '2015-02-15 06:53:26.339960') AND 1=0 AND "spree_promotions"."code" IS NULL AND "spree_promotions"."path" IS NULL Spree::Shipment Load (0.3ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 21]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 21], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 21], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 21], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 21], ["adjustable_type", "Spree::Shipment"]] SQL (14.2ms) UPDATE "spree_shipments" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 0, "adjustment_total" = 0.0, "updated_at" = '2015-02-15 06:53:26.359447' WHERE "spree_shipments"."id" = 21  (0.3ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] SQL (22.7ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 22.99, "item_count" = 1, "adjustment_total" = 1.15, "included_tax_total" = 0.0, "additional_tax_total" = 1.15, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 29.14, "updated_at" = '2015-02-15 06:53:26.377760' WHERE "spree_orders"."id" = 6  (0.1ms) begin transaction Spree::Order Exists (0.3ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] SQL (0.8ms) UPDATE "spree_orders" SET "state" = ?, "updated_at" = ? WHERE "spree_orders"."id" = 6 [["state", "payment"], ["updated_at", "2015-02-15 06:53:26.414017"]]  (34.4ms) commit transaction  (0.1ms) begin transaction SQL (1.7ms) INSERT INTO "spree_state_changes" ("created_at", "name", "next_state", "previous_state", "stateful_id", "stateful_type", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["created_at", "2015-02-15 06:53:26.454797"], ["name", "order"], ["next_state", "payment"], ["previous_state", "delivery"], ["stateful_id", 6], ["stateful_type", "Spree::Order"], ["updated_at", "2015-02-15 06:53:26.454797"], ["user_id", 1]]  (206.3ms) commit transaction  (0.1ms) begin transaction Spree::Order Exists (0.4ms) SELECT 1 AS one FROM "spree_orders" WHERE ("spree_orders"."number" = 'R079133342' AND "spree_orders"."id" != 6) LIMIT 1 Spree::Payment Load (0.1ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]]  (0.2ms) commit transaction  (0.3ms) SELECT SUM("spree_payments"."amount") AS sum_id FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND "spree_payments"."state" = 'completed' [["order_id", 6]]  (0.2ms) SELECT SUM(price * quantity) AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."cost") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::Adjustment Load (0.5ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE (order_id = 6 OR (adjustable_id = 6 AND adjustable_type = 'Spree::Order')) Spree::LineItem Load (0.4ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" IN (24) Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' ORDER BY amount ASC, created_at DESC, id DESC LIMIT 1 [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 't' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::TaxRate' AND "spree_adjustments"."included" = 'f' [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::TaxRate Load (0.2ms) SELECT "spree_tax_rates".* FROM "spree_tax_rates" WHERE "spree_tax_rates"."deleted_at" IS NULL AND "spree_tax_rates"."id" = ? LIMIT 1 [["id", 1]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 24]] Spree::Calculator Load (0.2ms) SELECT "spree_calculators".* FROM "spree_calculators" WHERE "spree_calculators"."calculable_id" = ? AND "spree_calculators"."calculable_type" = ? LIMIT 1 [["calculable_id", 1], ["calculable_type", "Spree::TaxRate"]] SQL (14.2ms) UPDATE "spree_adjustments" SET "amount" = 1.15, "updated_at" = '2015-02-15 06:53:26.717442' WHERE "spree_adjustments"."id" = 101 SQL (17.9ms) UPDATE "spree_line_items" SET "promo_total" = 0.0, "included_tax_total" = 0, "additional_tax_total" = 1.15, "adjustment_total" = 1.15, "updated_at" = '2015-02-15 06:53:26.733362' WHERE "spree_line_items"."id" = 24  (0.2ms) SELECT SUM("spree_line_items"."adjustment_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."adjustment_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.1ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]]  (0.2ms) SELECT SUM("spree_line_items"."included_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.3ms) SELECT SUM("spree_shipments"."included_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."additional_tax_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."additional_tax_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_line_items"."promo_total") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_shipments"."promo_total") AS sum_id FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]]  (0.2ms) SELECT SUM("spree_adjustments"."amount") AS sum_id FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? AND "spree_adjustments"."source_type" = 'Spree::PromotionAction' AND "spree_adjustments"."eligible" = 't' [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] SQL (13.7ms) UPDATE "spree_orders" SET "payment_state" = NULL, "shipment_state" = NULL, "item_total" = 22.99, "item_count" = 1, "adjustment_total" = 1.15, "included_tax_total" = 0.0, "additional_tax_total" = 1.15, "payment_total" = 0.0, "shipment_total" = 5.0, "promo_total" = 0.0, "total" = 29.14, "updated_at" = '2015-02-15 06:53:26.775672' WHERE "spree_orders"."id" = 6  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 24]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 21]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 21]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.7ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 21]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 21]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 24]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.2ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (1584.2ms) Completed 200 OK in 3807ms (Views: 1844.0ms | ActiveRecord: 1159.6ms) Started GET "/" for 127.0.0.1 at 2015-02-15 01:53:31 -0500 Processing by Sprangular::HomeController#index as HTML Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::PaymentMethod Load (0.5ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 35]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 36]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 24]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 21]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 21]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 21]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 21]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 21]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 24]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.1ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.2ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.1ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (1631.9ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 21]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (1221.8ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (3752.1ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (349.3ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.9ms) Completed 200 OK in 7591ms (Views: 7552.7ms | ActiveRecord: 20.3ms) Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-15 01:53:40 -0500 Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-15 01:53:40 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:40 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:40 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:40 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:40 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:40 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:40 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:40 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:40 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:41 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:41 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:41 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:41 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:41 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:41 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:41 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:41 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:41 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:41 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:41 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:42 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:42 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:42 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:42 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:42 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:42 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:42 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:42 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:42 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:42 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:42 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:42 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:42 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:43 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:43 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:43 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:43 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:43 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:43 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:43 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:43 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:43 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:43 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:43 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:43 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:44 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:44 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:44 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:44 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:44 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:44 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:44 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:44 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:44 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:44 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:44 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:44 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:44 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:44 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:45 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:45 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:45 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:45 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:45 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:45 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:45 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:45 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:45 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:45 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:45 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:45 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:45 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:45 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:46 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:46 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:46 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:46 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:46 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:46 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:46 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:46 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:46 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:46 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:46 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:46 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:46 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-15 01:53:47 -0500 Started GET "/api/products?page=1&per_page=12" for 127.0.0.1 at 2015-02-15 01:53:47 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12"} Spree::User Load (0.9ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]]  (1.2ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 06:53:47.698721') AND ("spree_products".available_on <= '2015-02-15 06:53:47.700076') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0) subquery_for_count  (1.1ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 06:53:47.698721') AND ("spree_products".available_on <= '2015-02-15 06:53:47.700076') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (1.4ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-15 06:53:47.698721') AND ("spree_products".available_on <= '2015-02-15 06:53:47.700076') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.6ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::OptionType Load (0.7ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (1.0ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Image Load (1.7ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.4ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Price Load (1.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::ProductProperty Load (2.6ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY spree_product_properties.position Spree::Property Load (0.9ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (1.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_variants".position ASC Spree::Image Load (1.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (1.0ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.8ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.9ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (1.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (1.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.8ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.8ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 9]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 9]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 9]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 11]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 11]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 11]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 12]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 12]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 12]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (6772.8ms) Completed 200 OK in 6835ms (Views: 6737.4ms | ActiveRecord: 63.1ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-15 01:53:54 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-15 01:53:54 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (0.9ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (216.3ms) Completed 200 OK in 274ms (Views: 233.5ms | ActiveRecord: 13.4ms) Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-15 01:53:54 -0500 Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-15 01:53:55 -0500 Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-15 01:53:55 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.9ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.7ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (20.4ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (322.6ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (2.8ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1801.7ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-15 01:53:57 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-15 01:53:57 -0500 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/auth_configuration/confirmable' LIMIT 1 Started GET "/" for 127.0.0.1 at 2015-02-18 08:34:48 -0500 ActiveRecord::SchemaMigration Load (3.2ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by Sprangular::HomeController#index as HTML Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/redirect_https_to_http' LIMIT 1 Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency' LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (3.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (1.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.6ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/logo' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/default_country_id' LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/products_per_page' LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/display_currency' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_symbol_position' LIMIT 1 Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/hide_cents' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_decimal_mark' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_thousands_separator' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_sign_before_symbol' LIMIT 1 Spree::Address Load (3.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.5ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.4ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.6ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.4ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.3ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/always_include_confirm_step' LIMIT 1 Spree::Payment Load (0.4ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 35]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 36]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.5ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (3.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (2.1ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.3ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/track_inventory_levels' LIMIT 1  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (4.4ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.4ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.5ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 24]] Spree::Payment Load (0.4ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.5ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.5ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.4ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 21]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.5ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 21]] Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.4ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 21]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.1ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.6ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 21]] Spree::Zone Load (0.6ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.7ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.5ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 21]] CACHE (0.1ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 24]] CACHE (0.1ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.6ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.7ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.5ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.6ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.4ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.4ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.1ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.8ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.4ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.5ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (3229.4ms) CACHE (0.1ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 21]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]] CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (1521.3ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (8437.0ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (1606.0ms) Spree::Tracker Load (0.5ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (20.3ms) Completed 200 OK in 53630ms (Views: 52971.6ms | ActiveRecord: 87.2ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-18 08:35:43 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:43 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:43 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-18 08:35:43 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:43 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:44 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:44 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:44 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:44 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:44 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:44 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:44 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:44 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:45 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:45 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:45 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:45 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:45 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:45 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:45 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:45 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:46 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:46 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:46 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:46 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:46 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:46 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:46 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:46 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:46 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:46 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:46 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:47 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:47 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:47 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:47 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:47 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:47 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:47 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:47 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:47 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:47 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:47 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:48 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:48 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:48 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:48 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:48 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:48 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:48 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:48 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:48 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:48 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:48 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:49 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:49 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:49 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:49 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:49 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:49 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:49 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:49 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:49 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:49 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:50 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:50 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:50 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:50 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:50 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:50 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:50 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:50 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:50 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:50 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:50 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:50 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:50 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:51 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:51 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:51 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:51 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:51 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:51 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:51 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:51 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:52 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:52 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-18 08:35:52 -0500 Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-18 08:35:53 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-18 08:35:53 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/redirect_https_to_http' LIMIT 1 Spree::User Load (0.8ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency' LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.6ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (328.1ms) Completed 200 OK in 413ms (Views: 346.1ms | ActiveRecord: 16.7ms) Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-18 08:35:54 -0500 Started GET "/api/products?page=1&per_page=12" for 127.0.0.1 at 2015-02-18 08:35:54 -0500 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12"} Spree::User Load (0.9ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.6ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/show_products_without_price' LIMIT 1  (1.0ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-18 13:35:54.580925') AND ("spree_products".available_on <= '2015-02-18 13:35:54.583181') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0) subquery_for_count  (1.1ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-18 13:35:54.580925') AND ("spree_products".available_on <= '2015-02-18 13:35:54.583181') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (1.7ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-18 13:35:54.580925') AND ("spree_products".available_on <= '2015-02-18 13:35:54.583181') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.7ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.9ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Image Load (1.8ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.4ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Price Load (1.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::ProductProperty Load (2.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY spree_product_properties.position Spree::Property Load (0.8ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (3.6ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_variants".position ASC Spree::Image Load (2.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.8ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.9ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.8ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/display_currency' LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_symbol_position' LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/hide_cents' LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_decimal_mark' LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_thousands_separator' LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_sign_before_symbol' LIMIT 1 Spree::Preference Load (0.6ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/track_inventory_levels' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.5ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]]  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 9]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 9]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 9]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 11]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 11]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 11]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 12]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 12]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 12]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (7355.4ms) Completed 200 OK in 7436ms (Views: 7317.8ms | ActiveRecord: 72.8ms) Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-18 08:36:01 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.9ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (3.3ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (17.0ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (195.7ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (23.9ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (2002.7ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-18 08:36:04 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-18 08:36:04 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-18 08:36:04 -0500 Started GET "/" for 127.0.0.1 at 2015-02-18 08:36:10 -0500 Processing by Sprangular::HomeController#index as HTML Spree::User Load (0.5ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.8ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.1ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/logo' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/default_country_id' LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/products_per_page' LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.3ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.7ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.5ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.5ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.8ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.1ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/always_include_confirm_step' LIMIT 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.1ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 35]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 36]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 24]] Spree::Payment Load (0.3ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 21]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 21]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 21]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.5ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 21]] Spree::Zone Load (0.3ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.3ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.2ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 21]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 24]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.3ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.4ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.1ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.4ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.3ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (1814.4ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 21]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (1264.6ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (3978.7ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (376.7ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.7ms) Completed 200 OK in 7728ms (Views: 7682.2ms | ActiveRecord: 24.9ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-18 08:36:18 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:18 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:18 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-18 08:36:18 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:18 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:18 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:19 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:19 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:19 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:19 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:19 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:19 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:19 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:19 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:19 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:19 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:19 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:19 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:19 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:20 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:20 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:20 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:20 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:20 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:20 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:20 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:20 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:20 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:20 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:20 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:20 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:20 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:21 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:21 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:21 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:21 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:21 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:21 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:21 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:21 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:21 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:21 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:21 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:21 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:21 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:21 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:22 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:22 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:22 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:22 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:22 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:22 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:22 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:22 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:22 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:22 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:22 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:22 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:22 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:22 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:22 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:23 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:23 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:23 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:23 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:23 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:23 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:23 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:23 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:23 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:23 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:23 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:23 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:23 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:23 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:24 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:24 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:24 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:24 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:24 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:24 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:24 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:24 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:24 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:24 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:24 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:24 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-18 08:36:24 -0500 Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-18 08:36:25 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::User Load (0.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (1.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-18 13:36:25.670419') AND ("spree_products".available_on <= '2015-02-18 13:36:25.671923') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::ProductOptionType Load (0.4ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (3) Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.5ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (3) Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (7, 11) Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (3) Spree::Image Load (0.9ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (3) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.5ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (3) Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (3) Spree::ProductProperty Load (1.0ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (3) ORDER BY spree_product_properties.position Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (3) ORDER BY "spree_variants".position ASC Spree::Image Load (1.6ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.5ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]] Spree::StockItem Load (1.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't'  (0.6ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.1ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2306.3ms) Completed 200 OK in 2546ms (Views: 2371.3ms | ActiveRecord: 29.9ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-18 08:36:28 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-18 08:36:28 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.4ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.9ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (206.3ms) Completed 200 OK in 264ms (Views: 225.2ms | ActiveRecord: 11.4ms) Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-18 08:36:28 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-18 08:36:28 -0500 Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-18 08:36:28 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.6ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.2ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (12.7ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (243.5ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.5ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1235.9ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-18 08:36:30 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-18 08:36:30 -0500 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/auth_configuration/confirmable' LIMIT 1 Spree::Variant Load (0.4ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL ORDER BY "spree_variants"."id" ASC LIMIT 1  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = ? [["variant_id", 1]] Started GET "/" for 127.0.0.1 at 2015-02-18 08:59:33 -0500 Processing by Sprangular::HomeController#index as HTML Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/redirect_https_to_http' LIMIT 1 Spree::User Load (0.7ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency' LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.3ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.5ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] CACHE (0.0ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/logo' LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/default_country_id' LIMIT 1 Spree::PaymentMethod Load (0.4ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/products_per_page' LIMIT 1 Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/display_currency' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_symbol_position' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/hide_cents' LIMIT 1 Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_decimal_mark' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_thousands_separator' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_sign_before_symbol' LIMIT 1 Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 6]] Spree::State Load (0.2ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] Spree::Country Load (0.3ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 5]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.1ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::CreditCard Load (0.2ms) SELECT "spree_credit_cards".* FROM "spree_credit_cards" WHERE "spree_credit_cards"."user_id" = ? AND (gateway_customer_profile_id IS NOT NULL) [["user_id", 1]] CACHE (0.1ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.5ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (10, 8) Spree::State Load (0.3ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) Spree::Country Load (0.4ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38) CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND ("spree_orders"."completed_at" IS NOT NULL) ORDER BY updated_at DESC [["user_id", 1]] Spree::Address Load (0.7ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" IN (9, 7) CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" IN (434) CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" IN (38)  (0.2ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/always_include_confirm_step' LIMIT 1 Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL CACHE (0.0ms) SELECT "spree_payment_methods".* FROM "spree_payment_methods" WHERE "spree_payment_methods"."deleted_at" IS NULL Spree::Address Load (0.3ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 35]] Spree::Address Load (0.2ms) SELECT "spree_addresses".* FROM "spree_addresses" WHERE "spree_addresses"."id" = ? LIMIT 1 [["id", 36]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] CACHE (0.0ms) SELECT "spree_states".* FROM "spree_states" WHERE "spree_states"."id" = ? LIMIT 1 [["id", 434]] CACHE (0.0ms) SELECT "spree_countries".* FROM "spree_countries" WHERE "spree_countries"."id" = ? LIMIT 1 [["id", 38]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Product Load (0.2ms) SELECT "spree_products".* FROM "spree_products" WHERE "spree_products"."id" = ? LIMIT 1 [["id", 2]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]] Spree::OptionValue Load (0.2ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/track_inventory_levels' LIMIT 1  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::Image Load (0.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 24], ["adjustable_type", "Spree::LineItem"]] Spree::LineItem Load (0.2ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 24]] Spree::Payment Load (0.2ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? ORDER BY spree_payments.created_at [["order_id", 6]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."order_id" = ? [["order_id", 6]] Spree::StockLocation Load (0.2ms) SELECT "spree_stock_locations".* FROM "spree_stock_locations" WHERE "spree_stock_locations"."id" = ? LIMIT 1 [["id", 1]] Spree::ShippingRate Load (0.2ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 21]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] Spree::Shipment Load (0.2ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 21]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.2ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 2]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.3ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 3]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingRate Load (0.3ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 21]] CACHE (0.0ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] Spree::ShippingMethod Load (0.4ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" INNER JOIN "spree_shipping_rates" ON "spree_shipping_methods"."id" = "spree_shipping_rates"."shipping_method_id" WHERE "spree_shipping_methods"."deleted_at" IS NULL AND "spree_shipping_rates"."shipment_id" = ? ORDER BY cost ASC [["shipment_id", 21]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 1]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::ShippingCategory Load (0.3ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 2]] Spree::Zone Load (0.2ms) SELECT "spree_zones".* FROM "spree_zones" INNER JOIN "spree_shipping_methods_zones" ON "spree_zones"."id" = "spree_shipping_methods_zones"."zone_id" WHERE "spree_shipping_methods_zones"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::ShippingCategory Load (0.2ms) SELECT "spree_shipping_categories".* FROM "spree_shipping_categories" INNER JOIN "spree_shipping_method_categories" ON "spree_shipping_categories"."id" = "spree_shipping_method_categories"."shipping_category_id" WHERE "spree_shipping_method_categories"."shipping_method_id" = ? [["shipping_method_id", 3]] Spree::InventoryUnit Load (0.3ms) SELECT "spree_inventory_units".* FROM "spree_inventory_units" WHERE "spree_inventory_units"."shipment_id" = ? [["shipment_id", 21]] CACHE (0.0ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."id" = ? LIMIT 1 [["id", 24]] CACHE (0.0ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."id" = ? LIMIT 1 [["id", 2]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? [["adjustable_id", 21], ["adjustable_type", "Spree::Shipment"]] Spree::Adjustment Load (0.2ms) SELECT "spree_adjustments".* FROM "spree_adjustments" WHERE "spree_adjustments"."adjustable_id" = ? AND "spree_adjustments"."adjustable_type" = ? ORDER BY spree_adjustments.created_at ASC [["adjustable_id", 6], ["adjustable_type", "Spree::Order"]] Spree::Product Load (0.3ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_products"."id" = "spree_variants"."product_id" INNER JOIN "spree_line_items" ON "spree_variants"."id" = "spree_line_items"."variant_id" WHERE "spree_products"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_line_items"."order_id" = ? ORDER BY spree_line_items.created_at ASC [["order_id", 6]] Spree::Variant Load (0.2ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 't' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] Spree::Variant Exists (0.3ms) SELECT 1 AS one FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' LIMIT 1 [["product_id", 2]] CACHE (0.0ms) SELECT "spree_option_values".* FROM "spree_option_values" INNER JOIN "spree_option_values_variants" ON "spree_option_values"."id" = "spree_option_values_variants"."option_value_id" WHERE "spree_option_values_variants"."variant_id" = ? [["variant_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_id" = ? AND "spree_assets"."viewable_type" = ? ORDER BY "spree_assets"."position" ASC [["viewable_id", 2], ["viewable_type", "Spree::Variant"]] Spree::Variant Load (0.3ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."is_master" = 'f' ORDER BY "spree_variants".position ASC [["product_id", 2]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" INNER JOIN "spree_product_option_types" ON "spree_option_types"."id" = "spree_product_option_types"."option_type_id" WHERE "spree_product_option_types"."product_id" = ? ORDER BY spree_option_types.position [["product_id", 2]] Spree::ProductProperty Load (0.3ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" = ? ORDER BY spree_product_properties.position [["product_id", 2]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 9]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 10]] Spree::Property Load (0.2ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" = ? LIMIT 1 [["id", 11]] Spree::Classification Load (0.2ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 3]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" = ? LIMIT 1 [["id", 11]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/accounts/show.json.rabl (1729.4ms) CACHE (0.0ms) SELECT SUM("spree_line_items"."quantity") AS sum_id FROM "spree_line_items" WHERE "spree_line_items"."order_id" = ? [["order_id", 6]] CACHE (0.0ms) SELECT "spree_payments".* FROM "spree_payments" WHERE "spree_payments"."order_id" = ? AND ("spree_payments"."state" NOT IN ('failed', 'invalid')) ORDER BY spree_payments.created_at [["order_id", 6]] CACHE (0.1ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_shipping_rates".* FROM "spree_shipping_rates" WHERE "spree_shipping_rates"."shipment_id" = ? AND "spree_shipping_rates"."selected" = 't' ORDER BY cost ASC LIMIT 1 [["shipment_id", 21]] CACHE (0.1ms) SELECT "spree_shipping_methods".* FROM "spree_shipping_methods" WHERE "spree_shipping_methods"."id" = ? LIMIT 1 [["id", 1]] CACHE (0.0ms) SELECT "spree_shipments".* FROM "spree_shipments" WHERE "spree_shipments"."id" = ? LIMIT 1 [["id", 21]] CACHE (0.0ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."id" = ? LIMIT 1 [["id", 6]] CACHE (0.0ms) SELECT "spree_taxons".id FROM "spree_taxons" INNER JOIN "spree_products_taxons" ON "spree_taxons"."id" = "spree_products_taxons"."taxon_id" WHERE "spree_products_taxons"."product_id" = ? [["product_id", 2]] CACHE (0.0ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]] CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]] CACHE (0.0ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/spree/api/orders/show.rabl (1278.4ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/home/index.slim within layouts/sprangular/application (3919.8ms) Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_templates.html.slim (361.0ms) Spree::Tracker Load (0.4ms) SELECT "spree_trackers".* FROM "spree_trackers" WHERE "spree_trackers"."active" = 't' AND "spree_trackers"."environment" = 'development' ORDER BY "spree_trackers"."id" ASC LIMIT 1 Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/shared/_analytics.slim (2.8ms) Completed 200 OK in 8041ms (Views: 7990.0ms | ActiveRecord: 25.2ms) Started GET "/assets/sprangular.css?body=1" for 127.0.0.1 at 2015-02-18 08:59:42 -0500 Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2015-02-18 08:59:42 -0500 Started GET "/assets/jquery/jquery.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:42 -0500 Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:42 -0500 Started GET "/assets/bootstrap-sass-official/bootstrap.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:42 -0500 Started GET "/assets/bootstrap-sass-official.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:42 -0500 Started GET "/assets/underscore.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:42 -0500 Started GET "/assets/underscore/underscore.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:42 -0500 Started GET "/assets/underscore.string/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:43 -0500 Started GET "/assets/underscore.string.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:43 -0500 Started GET "/assets/angular/angular.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:43 -0500 Started GET "/assets/angular.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:43 -0500 Started GET "/assets/angularytics/angularytics.min.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:43 -0500 Started GET "/assets/angularytics.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:43 -0500 Started GET "/assets/validity.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:43 -0500 Started GET "/assets/angular-bootstrap/ui-bootstrap-tpls.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:43 -0500 Started GET "/assets/angular-bootstrap.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:43 -0500 Started GET "/assets/angular-strap/angular-strap.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:43 -0500 Started GET "/assets/angular-strap/angular-strap.tpl.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:43 -0500 Started GET "/assets/angular-route.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:44 -0500 Started GET "/assets/angular-resource.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:44 -0500 Started GET "/assets/angular-sanitize.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:44 -0500 Started GET "/assets/angular-animate/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:44 -0500 Started GET "/assets/angular-animate.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:44 -0500 Started GET "/assets/sprangular/module.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:44 -0500 Started GET "/assets/sprangular/routes.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:44 -0500 Started GET "/assets/sprangular/controllers/account.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:44 -0500 Started GET "/assets/sprangular/controllers/addressList.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:44 -0500 Started GET "/assets/sprangular/controllers/cart.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:44 -0500 Started GET "/assets/sprangular/controllers/checkout.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:44 -0500 Started GET "/assets/sprangular/controllers/checkout/complete.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:44 -0500 Started GET "/assets/sprangular/controllers/checkout/confirm.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:45 -0500 Started GET "/assets/sprangular/controllers/creditCardList.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:45 -0500 Started GET "/assets/sprangular/controllers/footer.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:45 -0500 Started GET "/assets/sprangular/controllers/forgotPassword.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:45 -0500 Started GET "/assets/sprangular/controllers/global.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:45 -0500 Started GET "/assets/sprangular/controllers/header.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:45 -0500 Started GET "/assets/sprangular/controllers/home.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:45 -0500 Started GET "/assets/sprangular/controllers/orderList.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:45 -0500 Started GET "/assets/sprangular/controllers/product.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:45 -0500 Started GET "/assets/sprangular/controllers/productList.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:45 -0500 Started GET "/assets/sprangular/controllers/resetPassword.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:45 -0500 Started GET "/assets/sprangular/controllers/signin.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:45 -0500 Started GET "/assets/sprangular/controllers/signup.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:46 -0500 Started GET "/assets/sprangular/controllers/subscription.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:46 -0500 Started GET "/assets/sprangular/services/account.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:46 -0500 Started GET "/assets/sprangular/services/cart.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:46 -0500 Started GET "/assets/sprangular/services/catalog.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:46 -0500 Started GET "/assets/sprangular/services/checkout.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:46 -0500 Started GET "/assets/sprangular/services/facebook.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:46 -0500 Started GET "/assets/sprangular/services/flash.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:46 -0500 Started GET "/assets/sprangular/services/geography.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:46 -0500 Started GET "/assets/sprangular/services/newsletter.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:46 -0500 Started GET "/assets/sprangular/services/shipment.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:46 -0500 Started GET "/assets/sprangular/services/status.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:46 -0500 Started GET "/assets/sprangular/directives/addToCartButton.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:47 -0500 Started GET "/assets/sprangular/directives/addressForm.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:47 -0500 Started GET "/assets/sprangular/directives/addressSelection.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:47 -0500 Started GET "/assets/sprangular/directives/checkoutButton.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:47 -0500 Started GET "/assets/sprangular/directives/checkoutNav.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:47 -0500 Started GET "/assets/sprangular/directives/addressView.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:47 -0500 Started GET "/assets/sprangular/directives/confirm.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:47 -0500 Started GET "/assets/sprangular/directives/creditCardForm.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:47 -0500 Started GET "/assets/sprangular/directives/creditCardSelection.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:47 -0500 Started GET "/assets/sprangular/directives/creditCardView.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:47 -0500 Started GET "/assets/sprangular/directives/promoForm.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:47 -0500 Started GET "/assets/sprangular/directives/quantityInput.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:47 -0500 Started GET "/assets/sprangular/directives/shippingRatesSelection.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:48 -0500 Started GET "/assets/sprangular/directives/variantSelection.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:48 -0500 Started GET "/assets/sprangular/interceptors/loading.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:48 -0500 Started GET "/assets/sprangular/interceptors/railsAssets.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:48 -0500 Started GET "/assets/sprangular/interceptors/shaping.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:48 -0500 Started GET "/assets/sprangular/helpers/luhn.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:48 -0500 Started GET "/assets/sprangular/helpers/angularytics.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:48 -0500 Started GET "/assets/sprangular/models/address.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:48 -0500 Started GET "/assets/sprangular/helpers/underscore.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:48 -0500 Started GET "/assets/sprangular/models/adjustment.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:48 -0500 Started GET "/assets/sprangular/models/creditCard.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:48 -0500 Started GET "/assets/sprangular/models/order.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:48 -0500 Started GET "/assets/sprangular/models/product.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:49 -0500 Started GET "/assets/sprangular/models/shippingRate.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:49 -0500 Started GET "/assets/sprangular/models/user.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:49 -0500 Started GET "/assets/sprangular/models/variant.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:49 -0500 Started GET "/assets/sprangular/app.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:49 -0500 Started GET "/assets/sprangular.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:49 -0500 Started GET "/assets/sprangular/host.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:49 -0500 Started GET "/assets/sprangular/extraRoutes.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:49 -0500 Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2015-02-18 08:59:49 -0500 Started GET "/api/products/ruby-on-rails-baseball-jersey" for 127.0.0.1 at 2015-02-18 08:59:50 -0500 Processing by Sprangular::ProductsController#show as JSON Parameters: {"id"=>"ruby-on-rails-baseball-jersey"} Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/redirect_https_to_http' LIMIT 1 Spree::User Load (0.8ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency' LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.9ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.3ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.2ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Product Load (1.0ms) SELECT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-18 13:59:50.926541') AND ("spree_products".available_on <= '2015-02-18 13:59:50.928100') AND "spree_products"."slug" = 'ruby-on-rails-baseball-jersey' ORDER BY "spree_products"."id" ASC LIMIT 1 Spree::ProductOptionType Load (0.6ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (3) Spree::OptionType Load (0.6ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.4ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (3) Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (7, 11) Spree::Variant Load (0.8ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (3) Spree::Image Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (3) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.4ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (3) Spree::Price Load (0.8ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (3) Spree::ProductProperty Load (0.9ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (3) ORDER BY spree_product_properties.position Spree::Property Load (0.6ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.9ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (3) ORDER BY "spree_variants".position ASC Spree::Image Load (1.3ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.5ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.5ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]] Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/display_currency' LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_symbol_position' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/hide_cents' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_decimal_mark' LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_thousands_separator' LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_sign_before_symbol' LIMIT 1 Spree::Preference Load (0.5ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/track_inventory_levels' LIMIT 1  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.2ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Rendered /home/josh/.rvm/gems/ruby-2.1.5/bundler/gems/spree-6aa500c4cade/api/app/views/spree/api/products/show.v1.rabl (2484.2ms) Completed 200 OK in 2719ms (Views: 2527.7ms | ActiveRecord: 34.0ms) Started GET "/assets/fontawesome-webfont.woff?v=4.2.0" for 127.0.0.1 at 2015-02-18 08:59:53 -0500 Started GET "/assets/logo/spree_50.png" for 127.0.0.1 at 2015-02-18 08:59:53 -0500 Started GET "/api/taxonomies" for 127.0.0.1 at 2015-02-18 08:59:53 -0500 Processing by Sprangular::TaxonomiesController#index as JSON Spree::User Load (0.8ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Store Load (0.5ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.7ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.4ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Taxonomy Load (0.5ms) SELECT "spree_taxonomies".* FROM "spree_taxonomies" ORDER BY spree_taxonomies.position, name Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IS NULL AND "spree_taxons"."taxonomy_id" IN (2, 1) Spree::Taxon Load (1.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" IN (1, 2) ORDER BY "lft" Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 13) AND ("spree_taxons"."rgt" >= 22) AND ("spree_taxons"."id" != 2) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.8ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 1) AND ("spree_taxons"."rgt" >= 12) AND ("spree_taxons"."id" != 1) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 4) AND ("spree_taxons"."rgt" >= 5) AND ("spree_taxons"."id" != 4) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 6) AND ("spree_taxons"."rgt" >= 11) AND ("spree_taxons"."id" != 5) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/taxonomies/index.rabl (222.6ms) Completed 200 OK in 281ms (Views: 239.9ms | ActiveRecord: 12.0ms) Started GET "/assets/cart/cart.html" for 127.0.0.1 at 2015-02-18 08:59:54 -0500 Started GET "/fonts/bootstrap/glyphicons-halflings-regular.woff2" for 127.0.0.1 at 2015-02-18 08:59:54 -0500 ActionController::RoutingError (No route matches [GET] "/fonts/bootstrap/glyphicons-halflings-regular.woff2"): actionpack (4.1.9) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' railties (4.1.9) lib/rails/rack/logger.rb:38:in `call_app' railties (4.1.9) lib/rails/rack/logger.rb:20:in `block in call' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `block in tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:26:in `tagged' activesupport (4.1.9) lib/active_support/tagged_logging.rb:68:in `tagged' railties (4.1.9) lib/rails/rack/logger.rb:20:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/request_id.rb:21:in `call' rack (1.5.2) lib/rack/methodoverride.rb:21:in `call' rack (1.5.2) lib/rack/runtime.rb:17:in `call' rack-rewrite (1.5.1) lib/rack/rewrite.rb:24:in `call' activesupport (4.1.9) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' actionpack (4.1.9) lib/action_dispatch/middleware/static.rb:84:in `call' rack (1.5.2) lib/rack/sendfile.rb:112:in `call' railties (4.1.9) lib/rails/engine.rb:514:in `call' railties (4.1.9) lib/rails/application.rb:144:in `call' rack (1.5.2) lib/rack/lock.rb:17:in `call' rack (1.5.2) lib/rack/content_length.rb:14:in `call' rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run' /home/josh/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread' Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.9ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.2ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (11.9ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_route.html.erb (328.8ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/routes/_table.html.erb (3.1ms) Rendered /home/josh/.rvm/gems/ruby-2.1.5/gems/actionpack-4.1.9/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (1390.8ms) Started GET "/assets/products/typeahead.html" for 127.0.0.1 at 2015-02-18 08:59:55 -0500 Started GET "/assets/bootstrap/glyphicons-halflings-regular.woff" for 127.0.0.1 at 2015-02-18 08:59:56 -0500 Started GET "/api/products?page=1&per_page=12" for 127.0.0.1 at 2015-02-18 09:49:08 -0500 Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/auth_configuration/confirmable' LIMIT 1 Processing by Sprangular::ProductsController#index as JSON Parameters: {"page"=>"1", "per_page"=>"12"} Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/redirect_https_to_http' LIMIT 1 Spree::User Load (0.6ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = 1 ORDER BY "spree_users"."id" ASC LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency' LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE (url like '%localhost%') ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Store Load (0.4ms) SELECT "spree_stores".* FROM "spree_stores" WHERE "spree_stores"."default" = 't' ORDER BY "spree_stores"."id" ASC LIMIT 1 Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."currency" = 'USD' AND "spree_orders"."guest_token" = 'pE5h-hWKMZT8ZWWM1oG5Mw' AND "spree_orders"."store_id" = 1 AND "spree_orders"."user_id" = 1 LIMIT 1 Spree::Order Load (0.7ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL ORDER BY created_at DESC LIMIT 1 [["user_id", 1]] Spree::Order Load (0.6ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."user_id" = ? AND "spree_orders"."completed_at" IS NULL AND (id != 6) [["user_id", 1]]  (0.3ms) SELECT "spree_roles"."name" FROM "spree_roles" INNER JOIN "spree_roles_users" ON "spree_roles"."id" = "spree_roles_users"."role_id" WHERE "spree_roles_users"."user_id" = ? [["user_id", 1]] Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/show_products_without_price' LIMIT 1  (1.0ms) SELECT COUNT(DISTINCT count_column) FROM (SELECT DISTINCT "spree_products"."id" AS count_column FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-18 14:49:10.447323') AND ("spree_products".available_on <= '2015-02-18 14:49:10.448620') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0) subquery_for_count  (0.6ms) SELECT DISTINCT COUNT(DISTINCT "spree_products"."id") FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-18 14:49:10.447323') AND ("spree_products".available_on <= '2015-02-18 14:49:10.448620') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' Spree::Product Load (1.1ms) SELECT DISTINCT "spree_products".* FROM "spree_products" INNER JOIN "spree_variants" ON "spree_variants"."product_id" = "spree_products"."id" AND "spree_variants"."is_master" = 't' AND "spree_variants"."deleted_at" IS NULL INNER JOIN "spree_prices" ON "spree_prices"."variant_id" = "spree_variants"."id" AND "spree_prices"."deleted_at" IS NULL WHERE "spree_products"."deleted_at" IS NULL AND ("spree_products".deleted_at IS NULL or "spree_products".deleted_at >= '2015-02-18 14:49:10.447323') AND ("spree_products".available_on <= '2015-02-18 14:49:10.448620') AND (spree_prices.amount IS NOT NULL) AND "spree_prices"."currency" = 'USD' LIMIT 12 OFFSET 0 Spree::ProductOptionType Load (0.5ms) SELECT "spree_product_option_types".* FROM "spree_product_option_types" WHERE "spree_product_option_types"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" IN (1, 2) ORDER BY spree_option_types.position Spree::Classification Load (0.5ms) SELECT "spree_products_taxons".* FROM "spree_products_taxons" WHERE "spree_products_taxons"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."id" IN (3, 11, 7, 6, 8, 9, 10) Spree::Variant Load (0.7ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 't' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Image Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.4ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::Price Load (0.6ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) Spree::ProductProperty Load (1.4ms) SELECT "spree_product_properties".* FROM "spree_product_properties" WHERE "spree_product_properties"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY spree_product_properties.position Spree::Property Load (0.5ms) SELECT "spree_properties".* FROM "spree_properties" WHERE "spree_properties"."id" IN (9, 10, 11, 1, 2, 3, 4, 5, 6, 7, 8) Spree::Variant Load (0.9ms) SELECT "spree_variants".* FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."is_master" = 'f' AND "spree_variants"."product_id" IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) ORDER BY "spree_variants".position ASC Spree::Image Load (1.0ms) SELECT "spree_assets".* FROM "spree_assets" WHERE "spree_assets"."type" IN ('Spree::Image') AND "spree_assets"."viewable_type" = 'Spree::Variant' AND "spree_assets"."viewable_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) ORDER BY "spree_assets"."position" ASC HABTM_OptionValues Load (0.5ms) SELECT "spree_option_values_variants".* FROM "spree_option_values_variants" WHERE "spree_option_values_variants"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::OptionValue Load (0.4ms) SELECT "spree_option_values".* FROM "spree_option_values" WHERE "spree_option_values"."id" IN (1, 5, 7, 6, 2, 3, 4) Spree::Price Load (0.5ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."deleted_at" IS NULL AND "spree_prices"."variant_id" IN (17, 18, 19, 20, 21, 22, 23, 24, 25, 26) Spree::Price Load (0.4ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 1]] Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/display_currency' LIMIT 1 Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_symbol_position' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/hide_cents' LIMIT 1 Spree::Preference Load (0.4ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_decimal_mark' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_thousands_separator' LIMIT 1 Spree::Preference Load (0.2ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/currency_sign_before_symbol' LIMIT 1 Spree::Preference Load (0.3ms) SELECT "spree_preferences".* FROM "spree_preferences" WHERE "spree_preferences"."key" = 'spree/app_configuration/track_inventory_levels' LIMIT 1  (0.3ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 1]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 1 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.4ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 3]] Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 11]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 2]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 2]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 2 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 3]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 3]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 3]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 3 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 17]] Spree::OptionType Load (0.4ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]] Spree::OptionType Load (0.3ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 17 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 18]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 18 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 19]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 2]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 19 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 20]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 20 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 21]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.6ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 21 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 22]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 22 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 23]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 23 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 24]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 24 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 25]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.7ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 25 AND "spree_stock_locations"."active" = 't' Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 26]] CACHE (0.0ms) SELECT "spree_option_types".* FROM "spree_option_types" WHERE "spree_option_types"."id" = ? ORDER BY spree_option_types.position LIMIT 1 [["id", 1]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 26 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.6ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 7]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 4]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 4]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 4]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 4 AND "spree_stock_locations"."active" = 't' Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 6]] CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 5]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 5]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 5]] Spree::StockItem Load (0.5ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't'  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 5 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 20) AND ("spree_taxons"."rgt" >= 21) AND ("spree_taxons"."id" != 11) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 6]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 6]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 6]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 6 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 14) AND ("spree_taxons"."rgt" >= 15) AND ("spree_taxons"."id" != 8) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.2ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 8]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 7]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 7]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 7]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 7 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.5ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 16) AND ("spree_taxons"."rgt" >= 17) AND ("spree_taxons"."id" != 9) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 9]] Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 8]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 8]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 8]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 8 AND "spree_stock_locations"."active" = 't' CACHE (0.1ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (1.7ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Taxon Load (0.3ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE "spree_taxons"."parent_id" = ? ORDER BY "lft" [["parent_id", 10]] Spree::Price Load (0.3ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 9]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 9]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 9]]  (0.4ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 9 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 7) AND ("spree_taxons"."rgt" >= 8) AND ("spree_taxons"."id" != 6) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 10]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 10]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 10]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't'  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 10 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 9) AND ("spree_taxons"."rgt" >= 10) AND ("spree_taxons"."id" != 7) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 11]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 11]]  (0.2ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 11]] Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't'  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 11 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Spree::Price Load (0.2ms) SELECT "spree_prices".* FROM "spree_prices" WHERE "spree_prices"."variant_id" = ? AND "spree_prices"."currency" = 'USD' LIMIT 1 [["variant_id", 12]]  (0.2ms) SELECT COUNT(*) FROM "spree_variants" WHERE "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? AND "spree_variants"."track_inventory" = 'f' [["product_id", 12]]  (0.3ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_variants" ON "spree_stock_items"."variant_id" = "spree_variants"."id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_variants"."deleted_at" IS NULL AND "spree_variants"."product_id" = ? [["product_id", 12]]  (0.5ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' Spree::StockItem Load (0.4ms) SELECT "spree_stock_items".* FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT SUM("spree_stock_items"."count_on_hand") AS sum_id FROM "spree_stock_items" INNER JOIN "spree_stock_locations" ON "spree_stock_locations"."id" = "spree_stock_items"."stock_location_id" WHERE "spree_stock_items"."deleted_at" IS NULL AND "spree_stock_items"."variant_id" = 12 AND "spree_stock_locations"."active" = 't' CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 2) AND ("spree_taxons"."rgt" >= 3) AND ("spree_taxons"."id" != 3) ORDER BY "spree_taxons"."lft" CACHE (0.0ms) SELECT "spree_taxons".* FROM "spree_taxons" WHERE ("spree_taxons"."lft" <= 18) AND ("spree_taxons"."rgt" >= 19) AND ("spree_taxons"."id" != 10) ORDER BY "spree_taxons"."lft" Rendered /home/josh/Projects/Dynamo/sprangular/app/views/sprangular/products/index.json.rabl (6947.1ms) Completed 200 OK in 7198ms (Views: 6902.4ms | ActiveRecord: 73.8ms)